2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.doorbird.internal.model;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link DoorbirdInfoDTO} models the JSON response returned by the Doorbird in response
19 * to calling the info.cgi API.
21 * @author Mark Hilbush - Initial contribution
23 public class DoorbirdInfoDTO {
25 * Top level container of information about the Doorbird configuration
27 @SerializedName("BHA")
28 public DoorbirdInfoBha bha;
30 public class DoorbirdInfoBha {
32 * Return code from the Doorbird
34 @SerializedName("RETURNCODE")
35 public String returnCode;
38 * Contains information about the Doorbird configuration
40 @SerializedName("VERSION")
41 public DoorbirdInfoArray[] doorbirdInfoArray;
43 public class DoorbirdInfoArray {
45 * Doorbird's firmware version
47 @SerializedName("FIRMWARE")
48 public String firmwareVersion;
51 * Doorbird's build number
53 @SerializedName("BUILD_NUMBER")
54 public String buildNumber;
57 * MAC address of Doorbird's wired interface
59 @SerializedName("PRIMARY_MAC_ADDR")
60 public String primaryMacAddress;
63 * MAC address of Doorbird's wifi interface
65 @SerializedName("WIFI_MAC_ADDR")
66 public String wifiMacAddress;
69 * Array of relays supported by this Doorbird
71 @SerializedName("RELAYS")
72 public String[] relays;
75 * Doorbird's model name
77 @SerializedName("DEVICE-TYPE")
78 public String deviceType;