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 SipStatusDTO} models the JSON response returned by the Doorbird in response
19 * to calling the sip.cgi status API.
21 * @author Mark Hilbush - Initial contribution
23 public class SipStatusDTO {
25 * Top level container of information about the Doorbird status
27 @SerializedName("BHA")
28 public SipStatusBha bha;
30 public class SipStatusBha {
32 * Return code from the Doorbird
34 @SerializedName("RETURNCODE")
35 public String returnCode;
38 * Contains information about the Doorbird SIP status
40 @SerializedName("SIP")
41 public SipStatusArray[] sipStatusArray;
43 public class SipStatusArray {
44 @SerializedName("ENABLE")
47 @SerializedName("PRIORITIZE_APP")
48 public String prioritizeApp;
50 @SerializedName("REGISTER_URL")
51 public String registerUrl;
53 @SerializedName("REGISTER_USER")
54 public String registerUser;
56 @SerializedName("REGISTER_PASSWORD")
57 public String registerPassword;
59 @SerializedName("AUTOCALL_MOTIONSENSOR_URL")
60 public String autocallMotionSensorUrl;
62 @SerializedName("AUTOCALL_DOORBELL_URL")
63 public String autocallDoorbellUrl;
68 @SerializedName("SPK_VOLUME")
69 public String speakerVolume;
74 @SerializedName("MIC_VOLUME")
75 public String microphoneVolume;
77 @SerializedName("DTMF")
80 @SerializedName("relais:1")
81 public String relais1;
83 @SerializedName("relais:2")
84 public String relais2;
86 @SerializedName("LIGHT_PASSCODE")
87 public String lightPasscode;
89 @SerializedName("INCOMING_CALL_ENABLE")
90 public String incomingCallEnable;
92 @SerializedName("INCOMING_CALL_USER")
93 public String incomingCallUser;
95 @SerializedName("ANC")
96 public String autoNoiseCancellation;
99 * SIP call last error code
101 @SerializedName("LASTERRORCODE")
102 public String lastErrorCode;
105 * SIP call last error code
107 @SerializedName("LASTERRORTEXT")
108 public String lastErrorText;
111 * Maximum SIP ring time
113 @SerializedName("RING_TIME_LIMIT")
114 public String ringTimeLimit;
117 * Maximum SIP call time
119 @SerializedName("CALL_TIME_LIMIT")
120 public String callTimeLimit;