]> git.basschouten.com Git - openhab-addons.git/blob
cedddee133d323aefd130fa15e5234e541b5105f
[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 /**
16  * A {@link UniFiUnknownClient} represents an unknown {@link UniFiClient}.
17  *
18  * An unknown client is neither a {@link UniFiWiredClient} nor a {@link UniFiWirelessClient}
19  * because the <code>is_wired</code> property was missing from the JSON response of the controller.
20  *
21  * @author Matthew Bowman - Initial contribution
22  */
23 public class UniFiUnknownClient extends UniFiClient {
24
25     public UniFiUnknownClient(UniFiController controller) {
26         super(controller);
27     }
28
29     @Override
30     public Boolean isWired() {
31         return null; // mgb: no is_wired property in the json
32     }
33
34     @Override
35     public String getDeviceMac() {
36         return null; // mgb: no device mac in the json
37     }
38 }