]> git.basschouten.com Git - openhab-addons.git/blob
4384d1af7d3cf44c494f216e03d2d3c3752390a0
[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 FreeboxLanHostL2Ident} is the Java class used to map the "LanHostL2Ident"
17  * structure used by the Lan Hosts Browser API
18  * https://dev.freebox.fr/sdk/os/lan/#lan-browser
19  *
20  * @author Laurent Garnier - Initial contribution
21  */
22 public class FreeboxLanHostL2Ident {
23     private static final String L2_TYPE_MAC_ADDRESS = "mac_address";
24
25     private String id;
26     private String type;
27
28     public boolean isMacAddress() {
29         return L2_TYPE_MAC_ADDRESS.equalsIgnoreCase(type);
30     }
31
32     public String getId() {
33         return id;
34     }
35
36     public String getType() {
37         return type;
38     }
39 }