]> git.basschouten.com Git - openhab-addons.git/blob
e2e0ad681fb26129b52c836dc55941530e311a89
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.hue.internal.discovery;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link BridgeJsonParameters} class defines JSON object, which
19  * contains bridge attributes like IP address. It is used for bridge
20  * N-UPNP Discovery.
21  *
22  * @author Awelkiyar Wehabrebi - Initial contribution and API
23  * @author Christoph Knauf - Refactorings
24  */
25 public class BridgeJsonParameters {
26
27     private String id;
28     @SerializedName("internalipaddress")
29     private String internalIpAddress;
30     @SerializedName("macaddress")
31     private String macAddress;
32     private String name;
33
34     private BridgeJsonParameters() {
35         // This no arguments constructor is required for Gson deserialization
36     }
37
38     public BridgeJsonParameters(String id, String internalIpAddress, String macAdress, String name) {
39         this.id = id;
40         this.internalIpAddress = internalIpAddress;
41         this.macAddress = macAdress;
42         this.name = name;
43     }
44
45     public String getInternalIpAddress() {
46         return internalIpAddress;
47     }
48
49     public String getId() {
50         return id;
51     }
52
53     public String getMacAddress() {
54         return macAddress;
55     }
56
57     public String getName() {
58         return name;
59     }
60 }