]> git.basschouten.com Git - openhab-addons.git/blob
043c7cf9fbd5dc1be913a64c7dfd979d839b8393
[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 UniFiWiredClient} represents a wired {@link UniFiClient}.
19  *
20  * A wired client is physically connected to the network - typically it is connected via an Ethernet cable.
21  *
22  * @author Matthew Bowman - Initial contribution
23  */
24 public class UniFiWiredClient extends UniFiClient {
25
26     private String swMac;
27
28     public UniFiWiredClient(final UniFiControllerCache cache) {
29         super(cache);
30     }
31
32     @Override
33     public boolean isWired() {
34         return true;
35     }
36
37     @Override
38     public String getDeviceMac() {
39         return swMac;
40     }
41 }