]> git.basschouten.com Git - openhab-addons.git/blob
8b26c0a165b12dccb7467a1408509b1ec58336da
[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.electroluxair.internal.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link ElectroluxPureA9DTO} class defines the DTO for the Electrolux Pure A9.
21  *
22  * @author Jan Gustafsson - Initial contribution
23  */
24 @NonNullByDefault
25 public class ElectroluxPureA9DTO {
26     public String pncId = "";
27     public ApplianceData applianceData = new ApplianceData();
28     public AppliancesInfo applicancesInfo = new AppliancesInfo();
29
30     public Twin twin = new Twin();
31     public String telemetry = "";
32
33     public String getPncId() {
34         return pncId;
35     }
36
37     public ApplianceData getApplianceData() {
38         return applianceData;
39     }
40
41     public AppliancesInfo getApplicancesInfo() {
42         return applicancesInfo;
43     }
44
45     public void setApplicancesInfo(AppliancesInfo applicancesInfo) {
46         this.applicancesInfo = applicancesInfo;
47     }
48
49     public Twin getTwin() {
50         return twin;
51     }
52
53     public String getTelemetry() {
54         return telemetry;
55     }
56
57     public class MetaData1 {
58
59         @SerializedName("$lastUpdated")
60         public String lastUpdated1 = "";
61         @SerializedName("$lastUpdatedVersion")
62         public int lastUpdatedVersion1;
63         @SerializedName("TimeZoneStandardName")
64         public TimeZoneStandardName timeZoneStandardName = new TimeZoneStandardName();
65         @SerializedName("FrmVer_NIU")
66         public FrmVerNIU frmVerNIU = new FrmVerNIU();
67     }
68
69     public class Metadata2 {
70
71         @SerializedName("$lastUpdated")
72         public String lastUpdated2 = "";
73         @SerializedName("FrmVer_NIU")
74         public FrmVerNIU frmVerNIU = new FrmVerNIU();
75         @SerializedName("Workmode")
76         public Workmode workmode = new Workmode();
77         @SerializedName("FilterRFID")
78         public FilterRFID filterRFID = new FilterRFID();
79         @SerializedName("FilterLife")
80         public FilterLife filterLife = new FilterLife();
81         @SerializedName("Fanspeed")
82         public Fanspeed fanspeed = new Fanspeed();
83         @SerializedName("UILight")
84         public UILight uILight = new UILight();
85         @SerializedName("SafetyLock")
86         public SafetyLock safetyLock = new SafetyLock();
87         @SerializedName("Ionizer")
88         public Ionizer ionizer = new Ionizer();
89         @SerializedName("Sleep")
90         public Sleep sleep = new Sleep();
91         @SerializedName("Scheduler")
92         public Scheduler scheduler = new Scheduler();
93         @SerializedName("FilterType")
94         public FilterType filterType = new FilterType();
95         @SerializedName("DspIcoPM2_5")
96         public DspIcoPM25 dspIcoPM25 = new DspIcoPM25();
97         @SerializedName("DspIcoPM1")
98         public DspIcoPM1 dspIcoPM1 = new DspIcoPM1();
99         @SerializedName("DspIcoPM10")
100         public DspIcoPM10 dspIcoPM10 = new DspIcoPM10();
101         @SerializedName("DspIcoTVOC")
102         public DspIcoTVOC dspIcoTVOC = new DspIcoTVOC();
103         @SerializedName("ErrPM2_5")
104         public ErrPM25 errPM25 = new ErrPM25();
105         @SerializedName("ErrTVOC")
106         public ErrTVOC errTVOC = new ErrTVOC();
107         @SerializedName("ErrTempHumidity")
108         public ErrTempHumidity errTempHumidity = new ErrTempHumidity();
109         @SerializedName("ErrFanMtr")
110         public ErrFanMtr errFanMtr = new ErrFanMtr();
111         @SerializedName("ErrCommSensorDisplayBrd")
112         public ErrCommSensorDisplayBrd errCommSensorDisplayBrd = new ErrCommSensorDisplayBrd();
113         @SerializedName("DoorOpen")
114         public DoorOpen doorOpen = new DoorOpen();
115         @SerializedName("ErrRFID")
116         public ErrRFID errRFID = new ErrRFID();
117         @SerializedName("SignalStrength")
118         public SignalStrength signalStrength = new SignalStrength();
119         @SerializedName("PM1")
120         public PM1 pM1 = new PM1();
121         @SerializedName("PM2_5")
122         public PM25 pM25 = new PM25();
123         @SerializedName("PM10")
124         public PM10 pM10 = new PM10();
125         @SerializedName("TVOC")
126         public TVOC tVOC = new TVOC();
127         @SerializedName("CO2")
128         public CO2 cO2 = new CO2();
129         @SerializedName("Temp")
130         public Temp temp = new Temp();
131         @SerializedName("Humidity")
132         public Humidity humidity = new Humidity();
133         @SerializedName("EnvLightLvl")
134         public EnvLightLvl envLightLvl = new EnvLightLvl();
135         @SerializedName("RSSI")
136         public RSSI rSSI = new RSSI();
137     }
138
139     public class ApplianceData {
140
141         public String applianceName = "";
142         public String created = "";
143         public String modelName = "";
144         public String pncId = "";
145     }
146
147     public class AppliancesInfo {
148         public String brand = "";
149         public String colour = "";
150         public String device = "";
151         public String model = "";
152         public String serialNumber = "";
153     }
154
155     public class CO2 {
156         @SerializedName("$lastUpdated")
157         public String lastUpdated3 = "";
158     }
159
160     public class Desired {
161
162         @SerializedName("TimeZoneStandardName")
163         public String timeZoneStandardName = "";
164         @SerializedName("FrmVer_NIU")
165         public String frmVerNIU = "";
166         @SerializedName("$metadata")
167         public MetaData1 metadata3 = new MetaData1();
168         @SerializedName("$version")
169         public int version;
170     }
171
172     public class DoorOpen {
173         @SerializedName("$lastUpdated")
174         public String lastUpdated = "";
175     }
176
177     public class DspIcoPM1 {
178         @SerializedName("lastUpdated")
179         public String lastUpdated = "";
180     }
181
182     public class DspIcoPM10 {
183         @SerializedName("$lastUpdated")
184         public String lastUpdated = "";
185     }
186
187     public class DspIcoPM25 {
188         @SerializedName("$lastUpdated")
189         public String lastUpdated = "";
190     }
191
192     public class DspIcoTVOC {
193         @SerializedName("$lastUpdated")
194         public String lastUpdated = "";
195     }
196
197     public class EnvLightLvl {
198         @SerializedName("$lastUpdated")
199         public String lastUpdated = "";
200     }
201
202     public class ErrCommSensorDisplayBrd {
203         @SerializedName("$lastUpdated")
204         public String lastUpdated = "";
205     }
206
207     public class ErrFanMtr {
208         @SerializedName("$lastUpdated")
209         public String lastUpdated = "";
210     }
211
212     public class ErrPM25 {
213         @SerializedName("$lastUpdated")
214         public String lastUpdated = "";
215     }
216
217     public class ErrRFID {
218         @SerializedName("$lastUpdated")
219         public String lastUpdated = "";
220     }
221
222     public class ErrTVOC {
223         @SerializedName("$lastUpdated")
224         public String lastUpdated = "";
225     }
226
227     public class ErrTempHumidity {
228         @SerializedName("$lastUpdated")
229         public String lastUpdated = "";
230     }
231
232     public class Fanspeed {
233         @SerializedName("$lastUpdated")
234         public String lastUpdated = "";
235     }
236
237     public class FilterLife {
238         @SerializedName("$lastUpdated")
239         public String lastUpdated = "";
240     }
241
242     public class FilterRFID {
243         @SerializedName("$lastUpdated")
244         public String lastUpdated = "";
245     }
246
247     public class FilterType {
248         @SerializedName("$lastUpdated")
249         public String lastUpdated = "";
250     }
251
252     public class FrmVerNIU {
253         @SerializedName("$lastUpdated")
254         public String lastUpdated = "";
255         @SerializedName("$lastUpdatedVersion")
256         public int lastUpdatedVersion;
257     }
258
259     // public class FrmVerNIU_ {
260     // @SerializedName("$lastUpdated")
261     // public String lastUpdated = "";
262     // }
263
264     public class Humidity {
265         @SerializedName("$lastUpdated")
266         public String lastUpdated = "";
267     }
268
269     public class Ionizer {
270         @SerializedName("$lastUpdated")
271         public String lastUpdated = "";
272     }
273
274     public class PM1 {
275         @SerializedName("$lastUpdated")
276         public String lastUpdated = "";
277     }
278
279     public class PM10 {
280         @SerializedName("$lastUpdated")
281         public String lastUpdated = "";
282     }
283
284     public class PM25 {
285         @SerializedName("$lastUpdated")
286         public String lastUpdated = "";
287     }
288
289     public class Properties {
290         public Desired desired = new Desired();
291         public Reported reported = new Reported();
292
293         public Reported getReported() {
294             return reported;
295         }
296     }
297
298     public class RSSI {
299         @SerializedName("$lastUpdated")
300         public String lastUpdated = "";
301     }
302
303     public class Reported {
304
305         @SerializedName("FrmVer_NIU")
306         public String frmVerNIU = "";
307         @SerializedName("Workmode")
308         public String workmode = "";
309         @SerializedName("FilterRFID")
310         public String filterRFID = "";
311         @SerializedName("FilterLife")
312         public int filterLife;
313         @SerializedName("Fanspeed")
314         public int fanspeed;
315         @SerializedName("UILight")
316         public boolean uILight;
317         @SerializedName("SafetyLock")
318         public boolean safetyLock;
319         @SerializedName("Ionizer")
320         public boolean ionizer;
321         @SerializedName("Sleep")
322         public boolean sleep;
323         @SerializedName("Scheduler")
324         public boolean scheduler;
325         @SerializedName("FilterType")
326         public int filterType;
327         @SerializedName("DspIcoPM2_5")
328         public boolean dspIcoPM25;
329         @SerializedName("DspIcoPM1")
330         public boolean dspIcoPM1;
331         @SerializedName("DspIcoPM10")
332         public boolean dspIcoPM10;
333         @SerializedName("DspIcoTVOC")
334         public boolean dspIcoTVOC;
335         @SerializedName("ErrPM2_5")
336         public boolean errPM25;
337         @SerializedName("ErrTVOC")
338         public boolean errTVOC;
339         @SerializedName("ErrTempHumidity")
340         public boolean errTempHumidity;
341         @SerializedName("ErrFanMtr")
342         public boolean errFanMtr;
343         @SerializedName("ErrCommSensorDisplayBrd")
344         public boolean errCommSensorDisplayBrd;
345         @SerializedName("DoorOpen")
346         public boolean doorOpen;
347         @SerializedName("ErrRFID")
348         public boolean errRFID;
349         @SerializedName("SignalStrength")
350         public String signalStrength = "";
351         @SerializedName("$metadata")
352         public Metadata2 metadata2 = new Metadata2();
353         @SerializedName("$version")
354         public int version;
355         public String deviceId = "";
356         @SerializedName("PM1")
357         public int pM1;
358         @SerializedName("PM2_5")
359         public int pM25;
360         @SerializedName("PM10")
361         public int pM10;
362         @SerializedName("TVOC")
363         public int tVOC;
364         @SerializedName("CO2")
365         public int cO2;
366         @SerializedName("Temp")
367         public int temp;
368         @SerializedName("Humidity")
369         public int humidity;
370         @SerializedName("EnvLightLvl")
371         public int envLightLvl;
372         @SerializedName("RSSI")
373         public int rSSI;
374
375         public String getFrmVerNIU() {
376             return frmVerNIU;
377         }
378
379         public String getWorkmode() {
380             return workmode;
381         }
382
383         public String getFilterRFID() {
384             return filterRFID;
385         }
386
387         public int getFilterLife() {
388             return filterLife;
389         }
390
391         public int getFanspeed() {
392             return fanspeed;
393         }
394
395         public boolean isuILight() {
396             return uILight;
397         }
398
399         public boolean isSafetyLock() {
400             return safetyLock;
401         }
402
403         public boolean isIonizer() {
404             return ionizer;
405         }
406
407         public boolean isSleep() {
408             return sleep;
409         }
410
411         public boolean isScheduler() {
412             return scheduler;
413         }
414
415         public int getFilterType() {
416             return filterType;
417         }
418
419         public boolean isDspIcoPM25() {
420             return dspIcoPM25;
421         }
422
423         public boolean isDspIcoPM1() {
424             return dspIcoPM1;
425         }
426
427         public boolean isDspIcoPM10() {
428             return dspIcoPM10;
429         }
430
431         public boolean isDspIcoTVOC() {
432             return dspIcoTVOC;
433         }
434
435         public boolean isErrPM25() {
436             return errPM25;
437         }
438
439         public boolean isErrTVOC() {
440             return errTVOC;
441         }
442
443         public boolean isErrTempHumidity() {
444             return errTempHumidity;
445         }
446
447         public boolean isErrFanMtr() {
448             return errFanMtr;
449         }
450
451         public boolean isErrCommSensorDisplayBrd() {
452             return errCommSensorDisplayBrd;
453         }
454
455         public boolean isDoorOpen() {
456             return doorOpen;
457         }
458
459         public boolean isErrRFID() {
460             return errRFID;
461         }
462
463         public String getSignalStrength() {
464             return signalStrength;
465         }
466
467         public int getVersion() {
468             return version;
469         }
470
471         public String getDeviceId() {
472             return deviceId;
473         }
474
475         public int getpM1() {
476             return pM1;
477         }
478
479         public int getpM25() {
480             return pM25;
481         }
482
483         public int getpM10() {
484             return pM10;
485         }
486
487         public int gettVOC() {
488             return tVOC;
489         }
490
491         public int getcO2() {
492             return cO2;
493         }
494
495         public int getTemp() {
496             return temp;
497         }
498
499         public int getHumidity() {
500             return humidity;
501         }
502
503         public int getEnvLightLvl() {
504             return envLightLvl;
505         }
506
507         public int getrSSI() {
508             return rSSI;
509         }
510     }
511
512     public class SafetyLock {
513         @SerializedName("$lastUpdated")
514         public String lastUpdated = "";
515     }
516
517     public class Scheduler {
518         @SerializedName("$lastUpdated")
519         public String lastUpdated = "";
520     }
521
522     public class SignalStrength {
523         @SerializedName("$lastUpdated")
524         public String lastUpdated = "";
525     }
526
527     public class Sleep {
528         @SerializedName("$lastUpdated")
529         public String lastUpdated = "";
530     }
531
532     public class TVOC {
533         @SerializedName("$lastUpdated")
534         public String lastUpdated = "";
535     }
536
537     public class Temp {
538         @SerializedName("$lastUpdated")
539         public String lastUpdated = "";
540     }
541
542     public class TimeZoneStandardName {
543         @SerializedName("$lastUpdated")
544         public String lastUpdated = "";
545         @SerializedName("$lastUpdatedVersion")
546         public int lastUpdatedVersion;
547     }
548
549     public class Twin {
550         public String deviceId = "";
551         public Properties properties = new Properties();
552         public String status = "";
553         public String connectionState = "";
554
555         public String getDeviceId() {
556             return deviceId;
557         }
558
559         public Properties getProperties() {
560             return properties;
561         }
562
563         public String getStatus() {
564             return status;
565         }
566
567         public String getConnectionState() {
568             return connectionState;
569         }
570     }
571
572     public class UILight {
573         @SerializedName("$lastUpdated")
574         public String lastUpdated = "";
575     }
576
577     public class Workmode {
578         @SerializedName("$lastUpdated")
579         public String lastUpdated = "";
580     }
581 }