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.electroluxair.internal.dto;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import com.google.gson.annotations.SerializedName;
20 * The {@link ElectroluxPureA9DTO} class defines the DTO for the Electrolux Pure A9.
22 * @author Jan Gustafsson - Initial contribution
25 public class ElectroluxPureA9DTO {
26 public String pncId = "";
27 public ApplianceData applianceData = new ApplianceData();
28 public AppliancesInfo applicancesInfo = new AppliancesInfo();
30 public Twin twin = new Twin();
31 public String telemetry = "";
33 public String getPncId() {
37 public ApplianceData getApplianceData() {
41 public AppliancesInfo getApplicancesInfo() {
42 return applicancesInfo;
45 public void setApplicancesInfo(AppliancesInfo applicancesInfo) {
46 this.applicancesInfo = applicancesInfo;
49 public Twin getTwin() {
53 public String getTelemetry() {
57 public class MetaData1 {
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();
69 public class Metadata2 {
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();
139 public class ApplianceData {
141 public String applianceName = "";
142 public String created = "";
143 public String modelName = "";
144 public String pncId = "";
147 public class AppliancesInfo {
148 public String brand = "";
149 public String colour = "";
150 public String device = "";
151 public String model = "";
152 public String serialNumber = "";
156 @SerializedName("$lastUpdated")
157 public String lastUpdated3 = "";
160 public class Desired {
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")
172 public class DoorOpen {
173 @SerializedName("$lastUpdated")
174 public String lastUpdated = "";
177 public class DspIcoPM1 {
178 @SerializedName("lastUpdated")
179 public String lastUpdated = "";
182 public class DspIcoPM10 {
183 @SerializedName("$lastUpdated")
184 public String lastUpdated = "";
187 public class DspIcoPM25 {
188 @SerializedName("$lastUpdated")
189 public String lastUpdated = "";
192 public class DspIcoTVOC {
193 @SerializedName("$lastUpdated")
194 public String lastUpdated = "";
197 public class EnvLightLvl {
198 @SerializedName("$lastUpdated")
199 public String lastUpdated = "";
202 public class ErrCommSensorDisplayBrd {
203 @SerializedName("$lastUpdated")
204 public String lastUpdated = "";
207 public class ErrFanMtr {
208 @SerializedName("$lastUpdated")
209 public String lastUpdated = "";
212 public class ErrPM25 {
213 @SerializedName("$lastUpdated")
214 public String lastUpdated = "";
217 public class ErrRFID {
218 @SerializedName("$lastUpdated")
219 public String lastUpdated = "";
222 public class ErrTVOC {
223 @SerializedName("$lastUpdated")
224 public String lastUpdated = "";
227 public class ErrTempHumidity {
228 @SerializedName("$lastUpdated")
229 public String lastUpdated = "";
232 public class Fanspeed {
233 @SerializedName("$lastUpdated")
234 public String lastUpdated = "";
237 public class FilterLife {
238 @SerializedName("$lastUpdated")
239 public String lastUpdated = "";
242 public class FilterRFID {
243 @SerializedName("$lastUpdated")
244 public String lastUpdated = "";
247 public class FilterType {
248 @SerializedName("$lastUpdated")
249 public String lastUpdated = "";
252 public class FrmVerNIU {
253 @SerializedName("$lastUpdated")
254 public String lastUpdated = "";
255 @SerializedName("$lastUpdatedVersion")
256 public int lastUpdatedVersion;
259 // public class FrmVerNIU_ {
260 // @SerializedName("$lastUpdated")
261 // public String lastUpdated = "";
264 public class Humidity {
265 @SerializedName("$lastUpdated")
266 public String lastUpdated = "";
269 public class Ionizer {
270 @SerializedName("$lastUpdated")
271 public String lastUpdated = "";
275 @SerializedName("$lastUpdated")
276 public String lastUpdated = "";
280 @SerializedName("$lastUpdated")
281 public String lastUpdated = "";
285 @SerializedName("$lastUpdated")
286 public String lastUpdated = "";
289 public class Properties {
290 public Desired desired = new Desired();
291 public Reported reported = new Reported();
293 public Reported getReported() {
299 @SerializedName("$lastUpdated")
300 public String lastUpdated = "";
303 public class Reported {
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")
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")
355 public String deviceId = "";
356 @SerializedName("PM1")
358 @SerializedName("PM2_5")
360 @SerializedName("PM10")
362 @SerializedName("TVOC")
364 @SerializedName("CO2")
366 @SerializedName("Temp")
368 @SerializedName("Humidity")
370 @SerializedName("EnvLightLvl")
371 public int envLightLvl;
372 @SerializedName("RSSI")
375 public String getFrmVerNIU() {
379 public String getWorkmode() {
383 public String getFilterRFID() {
387 public int getFilterLife() {
391 public int getFanspeed() {
395 public boolean isuILight() {
399 public boolean isSafetyLock() {
403 public boolean isIonizer() {
407 public boolean isSleep() {
411 public boolean isScheduler() {
415 public int getFilterType() {
419 public boolean isDspIcoPM25() {
423 public boolean isDspIcoPM1() {
427 public boolean isDspIcoPM10() {
431 public boolean isDspIcoTVOC() {
435 public boolean isErrPM25() {
439 public boolean isErrTVOC() {
443 public boolean isErrTempHumidity() {
444 return errTempHumidity;
447 public boolean isErrFanMtr() {
451 public boolean isErrCommSensorDisplayBrd() {
452 return errCommSensorDisplayBrd;
455 public boolean isDoorOpen() {
459 public boolean isErrRFID() {
463 public String getSignalStrength() {
464 return signalStrength;
467 public int getVersion() {
471 public String getDeviceId() {
475 public int getpM1() {
479 public int getpM25() {
483 public int getpM10() {
487 public int gettVOC() {
491 public int getcO2() {
495 public int getTemp() {
499 public int getHumidity() {
503 public int getEnvLightLvl() {
507 public int getrSSI() {
512 public class SafetyLock {
513 @SerializedName("$lastUpdated")
514 public String lastUpdated = "";
517 public class Scheduler {
518 @SerializedName("$lastUpdated")
519 public String lastUpdated = "";
522 public class SignalStrength {
523 @SerializedName("$lastUpdated")
524 public String lastUpdated = "";
528 @SerializedName("$lastUpdated")
529 public String lastUpdated = "";
533 @SerializedName("$lastUpdated")
534 public String lastUpdated = "";
538 @SerializedName("$lastUpdated")
539 public String lastUpdated = "";
542 public class TimeZoneStandardName {
543 @SerializedName("$lastUpdated")
544 public String lastUpdated = "";
545 @SerializedName("$lastUpdatedVersion")
546 public int lastUpdatedVersion;
550 public String deviceId = "";
551 public Properties properties = new Properties();
552 public String status = "";
553 public String connectionState = "";
555 public String getDeviceId() {
559 public Properties getProperties() {
563 public String getStatus() {
567 public String getConnectionState() {
568 return connectionState;
572 public class UILight {
573 @SerializedName("$lastUpdated")
574 public String lastUpdated = "";
577 public class Workmode {
578 @SerializedName("$lastUpdated")
579 public String lastUpdated = "";