]> git.basschouten.com Git - openhab-addons.git/blob
9cad57fe59f666264cf8eab559dc4bf8c071e08f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.unifi.internal.api.dto;
14
15 import org.openhab.binding.unifi.internal.api.cache.UniFiControllerCache;
16 import org.openhab.binding.unifi.internal.api.util.UniFiTidyLowerCaseStringDeserializer;
17
18 import com.google.gson.annotations.JsonAdapter;
19
20 /**
21  * A {@link UniFiWirelessClient} represents a wireless {@link UniFiClient}.
22  *
23  * A wireless client is not physically connected to the network - typically it is connected via a Wi-Fi adapter.
24  *
25  * @author Matthew Bowman - Initial contribution
26  */
27 public class UniFiWirelessClient extends UniFiClient {
28
29     @JsonAdapter(UniFiTidyLowerCaseStringDeserializer.class)
30     private String apMac;
31
32     private String essid;
33
34     private Integer rssi;
35
36     public UniFiWirelessClient(final UniFiControllerCache cache) {
37         super(cache);
38     }
39
40     @Override
41     public Boolean isWired() {
42         return false;
43     }
44
45     @Override
46     public String getDeviceMac() {
47         return apMac;
48     }
49
50     public String getEssid() {
51         return essid;
52     }
53
54     public Integer getRssi() {
55         return rssi;
56     }
57 }