diff options
Diffstat (limited to 'src/org/traccar/model/WifiAccessPoint.java')
-rw-r--r-- | src/org/traccar/model/WifiAccessPoint.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/org/traccar/model/WifiAccessPoint.java b/src/org/traccar/model/WifiAccessPoint.java index e4a613e7c..ddb995412 100644 --- a/src/org/traccar/model/WifiAccessPoint.java +++ b/src/org/traccar/model/WifiAccessPoint.java @@ -20,6 +20,13 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) public class WifiAccessPoint { + public static WifiAccessPoint from(String macAddress, int signalStrength) { + WifiAccessPoint wifiAccessPoint = new WifiAccessPoint(); + wifiAccessPoint.setMacAddress(macAddress); + wifiAccessPoint.setSignalStrength(signalStrength); + return wifiAccessPoint; + } + private String macAddress; public String getMacAddress() { @@ -30,4 +37,14 @@ public class WifiAccessPoint { this.macAddress = macAddress; } + private Integer signalStrength; + + public Integer getSignalStrength() { + return signalStrength; + } + + public void setSignalStrength(Integer signalStrength) { + this.signalStrength = signalStrength; + } + } |