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