aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-29 11:06:01 +1300
committerGitHub <noreply@github.com>2017-01-29 11:06:01 +1300
commit6608d73a10cf49b19e57dd0bf87018055e51adfb (patch)
treed8753cefe7b849fdebf34a86480d228e64f26eb2 /src/org
parent26175114ee573caa1774a04157253789d4a93998 (diff)
parent1b7009e850fa0c8f755ba141ca185ea894ee2e6f (diff)
downloadtrackermap-server-6608d73a10cf49b19e57dd0bf87018055e51adfb.tar.gz
trackermap-server-6608d73a10cf49b19e57dd0bf87018055e51adfb.tar.bz2
trackermap-server-6608d73a10cf49b19e57dd0bf87018055e51adfb.zip
Merge pull request #2848 from ValeraVi/add-wifi-channel
Added channel to WifiAccessPoint geolocation class
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/model/WifiAccessPoint.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/org/traccar/model/WifiAccessPoint.java b/src/org/traccar/model/WifiAccessPoint.java
index ddb995412..b18705420 100644
--- a/src/org/traccar/model/WifiAccessPoint.java
+++ b/src/org/traccar/model/WifiAccessPoint.java
@@ -27,6 +27,12 @@ public class WifiAccessPoint {
return wifiAccessPoint;
}
+ public static WifiAccessPoint from(String macAddress, int signalStrength, int channel) {
+ WifiAccessPoint wifiAccessPoint = from(macAddress, signalStrength);
+ wifiAccessPoint.setChannel(channel);
+ return wifiAccessPoint;
+ }
+
private String macAddress;
public String getMacAddress() {
@@ -47,4 +53,14 @@ public class WifiAccessPoint {
this.signalStrength = signalStrength;
}
+ private Integer channel;
+
+ public Integer getChannel() {
+ return channel;
+ }
+
+ public void setChannel(Integer channel) {
+ this.channel = channel;
+ }
+
}