]> git.basschouten.com Git - openhab-addons.git/blob
4848e980b62a443bda5b27aa68ab1efe9ab47ce7
[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 SipStatusDTO} models the JSON response returned by the Doorbird in response
19  * to calling the sip.cgi status API.
20  *
21  * @author Mark Hilbush - Initial contribution
22  */
23 public class SipStatusDTO {
24     /**
25      * Top level container of information about the Doorbird status
26      */
27     @SerializedName("BHA")
28     public SipStatusBha bha;
29
30     public class SipStatusBha {
31         /**
32          * Return code from the Doorbird
33          */
34         @SerializedName("RETURNCODE")
35         public String returnCode;
36
37         /**
38          * Contains information about the Doorbird SIP status
39          */
40         @SerializedName("SIP")
41         public SipStatusArray[] sipStatusArray;
42
43         public class SipStatusArray {
44             @SerializedName("ENABLE")
45             public String enable;
46
47             @SerializedName("PRIORITIZE_APP")
48             public String prioritizeApp;
49
50             @SerializedName("REGISTER_URL")
51             public String registerUrl;
52
53             @SerializedName("REGISTER_USER")
54             public String registerUser;
55
56             @SerializedName("REGISTER_PASSWORD")
57             public String registerPassword;
58
59             @SerializedName("AUTOCALL_MOTIONSENSOR_URL")
60             public String autocallMotionSensorUrl;
61
62             @SerializedName("AUTOCALL_DOORBELL_URL")
63             public String autocallDoorbellUrl;
64
65             /**
66              * Speaker volume
67              */
68             @SerializedName("SPK_VOLUME")
69             public String speakerVolume;
70
71             /**
72              * Microphone volume
73              */
74             @SerializedName("MIC_VOLUME")
75             public String microphoneVolume;
76
77             @SerializedName("DTMF")
78             public String dtmf;
79
80             @SerializedName("relais:1")
81             public String relais1;
82
83             @SerializedName("relais:2")
84             public String relais2;
85
86             @SerializedName("LIGHT_PASSCODE")
87             public String lightPasscode;
88
89             @SerializedName("INCOMING_CALL_ENABLE")
90             public String incomingCallEnable;
91
92             @SerializedName("INCOMING_CALL_USER")
93             public String incomingCallUser;
94
95             @SerializedName("ANC")
96             public String autoNoiseCancellation;
97
98             /**
99              * SIP call last error code
100              */
101             @SerializedName("LASTERRORCODE")
102             public String lastErrorCode;
103
104             /**
105              * SIP call last error code
106              */
107             @SerializedName("LASTERRORTEXT")
108             public String lastErrorText;
109
110             /**
111              * Maximum SIP ring time
112              */
113             @SerializedName("RING_TIME_LIMIT")
114             public String ringTimeLimit;
115
116             /**
117              * Maximum SIP call time
118              */
119             @SerializedName("CALL_TIME_LIMIT")
120             public String callTimeLimit;
121         }
122     }
123 }