diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-29 05:57:26 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-29 04:57:26 +1300 |
commit | c2bdb1c0af69739eb7ed3618e72687bc5e1275c4 (patch) | |
tree | b2c32054701503873644abe88187a2104bb3c9bd /src/org/traccar/model/WifiAccessPoint.java | |
parent | 4ebf4b522d002884e4f2c009eef62ce2c2ab9859 (diff) | |
download | trackermap-server-c2bdb1c0af69739eb7ed3618e72687bc5e1275c4.tar.gz trackermap-server-c2bdb1c0af69739eb7ed3618e72687bc5e1275c4.tar.bz2 trackermap-server-c2bdb1c0af69739eb7ed3618e72687bc5e1275c4.zip |
Finish Smokey protocol implementation
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; + } + } |