]> git.basschouten.com Git - openhab-addons.git/blob
694cba16b6fa62e2b1d1589d57311a3cf2b3b976
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.model;
14
15 import org.openhab.binding.unifi.internal.api.util.UniFiTidyLowerCaseStringDeserializer;
16
17 import com.google.gson.annotations.JsonAdapter;
18
19 /**
20  * A {@link UniFiWirelessClient} represents a wireless {@link UniFiClient}.
21  *
22  * A wireless client is not physically connected to the network - typically it is connected via a Wi-Fi adapter.
23  *
24  * @author Matthew Bowman - Initial contribution
25  */
26 public class UniFiWirelessClient extends UniFiClient {
27
28     @JsonAdapter(UniFiTidyLowerCaseStringDeserializer.class)
29     private String apMac;
30
31     private String essid;
32
33     private Integer rssi;
34
35     public UniFiWirelessClient(UniFiController controller) {
36         super(controller);
37     }
38
39     @Override
40     public Boolean isWired() {
41         return false;
42     }
43
44     @Override
45     public String getDeviceMac() {
46         return apMac;
47     }
48
49     public String getEssid() {
50         return essid;
51     }
52
53     public Integer getRssi() {
54         return rssi;
55     }
56 }