diff options
Diffstat (limited to 'src')
-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; + } + } |