aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-29 05:57:26 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-29 04:57:26 +1300
commitc2bdb1c0af69739eb7ed3618e72687bc5e1275c4 (patch)
treeb2c32054701503873644abe88187a2104bb3c9bd /src/org/traccar/model
parent4ebf4b522d002884e4f2c009eef62ce2c2ab9859 (diff)
downloadtraccar-server-c2bdb1c0af69739eb7ed3618e72687bc5e1275c4.tar.gz
traccar-server-c2bdb1c0af69739eb7ed3618e72687bc5e1275c4.tar.bz2
traccar-server-c2bdb1c0af69739eb7ed3618e72687bc5e1275c4.zip
Finish Smokey protocol implementation
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/WifiAccessPoint.java17
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;
+ }
+
}