]> git.basschouten.com Git - openhab-addons.git/blob
52712f2f031cd12daa1790cb9326eb0fb3e9fcdd
[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.wlanthermo.internal.api.mini.dto.builtin;
14
15 import com.google.gson.annotations.Expose;
16 import com.google.gson.annotations.SerializedName;
17
18 /**
19  * This DTO is used to parse the JSON
20  * Class is auto-generated from JSON using http://www.jsonschema2pojo.org/
21  *
22  * @author Christian Schlipp - Initial contribution
23  */
24 public class Channel {
25
26     @SerializedName("0")
27     @Expose
28     private Data _0;
29     @SerializedName("1")
30     @Expose
31     private Data _1;
32     @SerializedName("2")
33     @Expose
34     private Data _2;
35     @SerializedName("3")
36     @Expose
37     private Data _3;
38     @SerializedName("4")
39     @Expose
40     private Data _4;
41     @SerializedName("5")
42     @Expose
43     private Data _5;
44     @SerializedName("6")
45     @Expose
46     private Data _6;
47     @SerializedName("7")
48     @Expose
49     private Data _7;
50     @SerializedName("8")
51     @Expose
52     private Data _8;
53     @SerializedName("9")
54     @Expose
55     private Data _9;
56
57     /**
58      * No args constructor for use in serialization
59      * 
60      */
61     public Channel() {
62     }
63
64     /**
65      * 
66      * @param _0
67      * @param _1
68      * @param _2
69      * @param _3
70      * @param _4
71      * @param _5
72      * @param _6
73      * @param _7
74      * @param _8
75      * @param _9
76      */
77     public Channel(Data _0, Data _1, Data _2, Data _3, Data _4, Data _5, Data _6, Data _7, Data _8, Data _9) {
78         super();
79         this._0 = _0;
80         this._1 = _1;
81         this._2 = _2;
82         this._3 = _3;
83         this._4 = _4;
84         this._5 = _5;
85         this._6 = _6;
86         this._7 = _7;
87         this._8 = _8;
88         this._9 = _9;
89     }
90
91     public Data get0() {
92         return _0;
93     }
94
95     public void set0(Data _0) {
96         this._0 = _0;
97     }
98
99     public Channel with0(Data _0) {
100         this._0 = _0;
101         return this;
102     }
103
104     public Data get1() {
105         return _1;
106     }
107
108     public void set1(Data _1) {
109         this._1 = _1;
110     }
111
112     public Channel with1(Data _1) {
113         this._1 = _1;
114         return this;
115     }
116
117     public Data get2() {
118         return _2;
119     }
120
121     public void set2(Data _2) {
122         this._2 = _2;
123     }
124
125     public Channel with2(Data _2) {
126         this._2 = _2;
127         return this;
128     }
129
130     public Data get3() {
131         return _3;
132     }
133
134     public void set3(Data _3) {
135         this._3 = _3;
136     }
137
138     public Channel with3(Data _3) {
139         this._3 = _3;
140         return this;
141     }
142
143     public Data get4() {
144         return _4;
145     }
146
147     public void set4(Data _4) {
148         this._4 = _4;
149     }
150
151     public Channel with4(Data _4) {
152         this._4 = _4;
153         return this;
154     }
155
156     public Data get5() {
157         return _5;
158     }
159
160     public void set5(Data _5) {
161         this._5 = _5;
162     }
163
164     public Channel with5(Data _5) {
165         this._5 = _5;
166         return this;
167     }
168
169     public Data get6() {
170         return _6;
171     }
172
173     public void set6(Data _6) {
174         this._6 = _6;
175     }
176
177     public Channel with6(Data _6) {
178         this._6 = _6;
179         return this;
180     }
181
182     public Data get7() {
183         return _7;
184     }
185
186     public void set7(Data _7) {
187         this._7 = _7;
188     }
189
190     public Channel with7(Data _7) {
191         this._7 = _7;
192         return this;
193     }
194
195     public Data get8() {
196         return _8;
197     }
198
199     public void set8(Data _8) {
200         this._8 = _8;
201     }
202
203     public Channel with8(Data _8) {
204         this._8 = _8;
205         return this;
206     }
207
208     public Data get9() {
209         return _9;
210     }
211
212     public void set9(Data _9) {
213         this._9 = _9;
214     }
215
216     public Channel with9(Data _9) {
217         this._9 = _9;
218         return this;
219     }
220
221     public Data getData(int i) {
222         switch (i) {
223             case 0:
224                 return get0();
225             case 1:
226                 return get1();
227             case 2:
228                 return get2();
229             case 3:
230                 return get3();
231             case 4:
232                 return get4();
233             case 5:
234                 return get5();
235             case 6:
236                 return get6();
237             case 7:
238                 return get7();
239             case 8:
240                 return get8();
241             case 9:
242                 return get9();
243             default:
244                 return null;
245         }
246     }
247 }