]> git.basschouten.com Git - openhab-addons.git/blob
a9a6eb592464a56ce3673a075b8fb08a4bfeb0a7
[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.freebox.internal.api.model;
14
15 /**
16  * The {@link FreeboxLanConfig} is the Java class used to map the "LanConfig"
17  * structure used by the LAN configuration API
18  * https://dev.freebox.fr/sdk/os/lan/#
19  *
20  * @author Laurent Garnier - Initial contribution
21  */
22 public class FreeboxLanConfig {
23     private static final String LAN_BRIDGE_MODE = "bridge";
24
25     private String ip;
26     private String name;
27     private String nameDns;
28     private String nameMdns;
29     private String nameNetbios;
30     private String type;
31
32     public boolean isInBridgeMode() {
33         return LAN_BRIDGE_MODE.equalsIgnoreCase(type);
34     }
35
36     public String getIp() {
37         return ip;
38     }
39
40     public String getName() {
41         return name;
42     }
43
44     public String getNameDns() {
45         return nameDns;
46     }
47
48     public String getNameMdns() {
49         return nameMdns;
50     }
51
52     public String getNameNetbios() {
53         return nameNetbios;
54     }
55
56     public String getType() {
57         return type;
58     }
59 }