diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-29 11:06:01 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-29 11:06:01 +1300 |
commit | 6608d73a10cf49b19e57dd0bf87018055e51adfb (patch) | |
tree | d8753cefe7b849fdebf34a86480d228e64f26eb2 /src/org/traccar | |
parent | 26175114ee573caa1774a04157253789d4a93998 (diff) | |
parent | 1b7009e850fa0c8f755ba141ca185ea894ee2e6f (diff) | |
download | trackermap-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/traccar')
-rw-r--r-- | src/org/traccar/model/WifiAccessPoint.java | 16 |
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; + } + } |