]> git.basschouten.com Git - openhab-addons.git/blob
529a461a5b46454ee0d9f33ce09a0ad38d92e5c5
[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.doorbird.internal.model;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link DoorbirdInfoDTO} models the JSON response returned by the Doorbird in response
19  * to calling the info.cgi API.
20  *
21  * @author Mark Hilbush - Initial contribution
22  */
23 public class DoorbirdInfoDTO {
24     /**
25      * Top level container of information about the Doorbird configuration
26      */
27     @SerializedName("BHA")
28     public DoorbirdInfoBha bha;
29
30     public class DoorbirdInfoBha {
31         /**
32          * Return code from the Doorbird
33          */
34         @SerializedName("RETURNCODE")
35         public String returnCode;
36
37         /**
38          * Contains information about the Doorbird configuration
39          */
40         @SerializedName("VERSION")
41         public DoorbirdInfoArray[] doorbirdInfoArray;
42
43         public class DoorbirdInfoArray {
44             /**
45              * Doorbird's firmware version
46              */
47             @SerializedName("FIRMWARE")
48             public String firmwareVersion;
49
50             /**
51              * Doorbird's build number
52              */
53             @SerializedName("BUILD_NUMBER")
54             public String buildNumber;
55
56             /**
57              * MAC address of Doorbird's wired interface
58              */
59             @SerializedName("PRIMARY_MAC_ADDR")
60             public String primaryMacAddress;
61
62             /**
63              * MAC address of Doorbird's wifi interface
64              */
65             @SerializedName("WIFI_MAC_ADDR")
66             public String wifiMacAddress;
67
68             /**
69              * Array of relays supported by this Doorbird
70              */
71             @SerializedName("RELAYS")
72             public String[] relays;
73
74             /**
75              * Doorbird's model name
76              */
77             @SerializedName("DEVICE-TYPE")
78             public String deviceType;
79         }
80     }
81 }