]> git.basschouten.com Git - openhab-addons.git/blob
33192ae11054541f2c7839e53971e987f2ceee46
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.haassohnpelletstove.internal;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link HaasSohnpelletstoveJsonDataDTO} is the Java class used to map the JSON
19  * response to an Oven request.
20  *
21  * @author Christian Feininger - Initial contribution
22  */
23 public class HaasSohnpelletstoveJsonDataDTO {
24     metadata meta = new metadata();
25     boolean prg;
26     boolean wprg;
27     String mode = "";
28     @SerializedName("sp_temp")
29     String spTemp = "";
30     @SerializedName("is_temp")
31     String isTemp = "";
32     @SerializedName("ht_char")
33     String htChar = "";
34     @SerializedName("weekprogram")
35     private wprogram[] weekprogram;
36     @SerializedName("error")
37     private err[] error;
38     @SerializedName("eco_mode")
39     boolean ecoMode;
40     boolean pgi;
41     String ignitions = "";
42     @SerializedName("on_time")
43     String onTime = "";
44     String consumption = "";
45     @SerializedName("maintenance_in")
46     String maintenanceIn = "";
47     @SerializedName("cleaning_in")
48     String cleaningIn = "";
49
50     /***
51      * Get the nonce
52      *
53      * @return nonce
54      */
55     public String getNonce() {
56         return this.meta.getNonce();
57     }
58
59     /**
60      * Returns the is Temperature of the Oven
61      *
62      * @return
63      */
64     public String getisTemp() {
65         return isTemp;
66     }
67
68     public boolean getEcoMode() {
69         return ecoMode;
70     }
71
72     public String getIgnitions() {
73         return ignitions;
74     }
75
76     public String getOnTime() {
77         return onTime;
78     }
79
80     public String getConsumption() {
81         return consumption;
82     }
83
84     public String getMaintenanceIn() {
85         return maintenanceIn;
86     }
87
88     public String getCleaningIn() {
89         return cleaningIn;
90     }
91
92     /***
93      * JSON response
94      *
95      * @return JSON response as object
96      */
97     public HaasSohnpelletstoveJsonDataDTO getResponse() {
98         return this;
99     }
100
101     public class metadata {
102         @SerializedName("sw_version")
103         String swVersion = "";
104         @SerializedName("hw_version")
105         String hwVersion = "";
106         @SerializedName("bootl_version")
107         String bootlVersion = "";
108         @SerializedName("wifi_sw_version")
109         String wifiSWVersion = "";
110         @SerializedName("wifi_bootl_version")
111         String wifiBootlVersion = "";
112         String sn = "";
113         String typ = "";
114         String language = "";
115         String nonce = "";
116         @SerializedName("eco_editable")
117         String ecoEditable = "";
118         String ts = "";
119         String ean = "";
120         boolean rau;
121         @SerializedName("wlan_features")
122         private String[] wlan_features;
123
124         public String getNonce() {
125             return nonce;
126         }
127     }
128
129     public class err {
130         String time = "";
131         String nr = "";
132     }
133
134     public class wprogram {
135         String day = "";
136         String begin = "";
137         String end = "";
138         String temp = "";
139     }
140
141     public String getMode() {
142         return mode;
143     }
144
145     public String getspTemp() {
146         return spTemp;
147     }
148
149     public boolean getPrg() {
150         return prg;
151     }
152 }