]> git.basschouten.com Git - openhab-addons.git/blob
2b8cb967cb13eec78c5d7375a5de7226de177021
[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.livisismarthome.internal.client.api.entity.event;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * @author Oliver Kuhl - Initial contribution
19  */
20 public class EventPropertiesDTO {
21
22     /** SHC Properties **/
23     private Integer configVersion;
24     private Boolean isConnected;
25
26     /** Writable capability properties **/
27     private Integer dimLevel;
28     private Boolean onState;
29     private String operationMode;
30     private String operationStatus;
31     private Double pointTemperature;
32     private Integer shutterLevel;
33     private Boolean value;
34
35     /** readable capability properties **/
36     private Double absoluteEnergyConsumption;
37     private Double energyConsumptionDayEuro;
38     private Double energyConsumptionDayKWh;
39     private Double energyConsumptionMonthEuro;
40     private Double energyConsumptionMonthKWh;
41     private Double energyPerDayInEuro;
42     private Double energyPerDayInKWh;
43     private Double energyPerMonthInEuro;
44     private Double energyPerMonthInKWh;
45     private Boolean frostWarning;
46     private Double humidity;
47     private Boolean isReachable;
48     private Boolean isOpen;
49     private Boolean isSmokeAlarm;
50     @SerializedName("type")
51     private String keyPressType;
52     @SerializedName("index")
53     private Integer keyPressButtonIndex;
54     private Integer keyPressCounter;
55     @SerializedName("lastPressedButtonIndex")
56     private Integer lastKeyPressButtonIndex;
57     private Integer lastKeyPressCounter;
58     private Double luminance;
59     private Boolean moldWarning;
60     private Integer motionDetectedCount;
61     private Double powerConsumptionWatt;
62     private Double powerInWatt;
63     private Double temperature;
64     private Double totalEnergy;
65     private Boolean windowReductionActive;
66     private Double cpuUsage;
67     private Double diskUsage;
68     private Double memoryUsage;
69     @SerializedName("CPULoad")
70     private Double cpuLoad;
71     private Double memoryLoad;
72     @SerializedName("OSState")
73     private String osState;
74
75     /**
76      * @return the configurationVersion
77      */
78     public Integer getConfigVersion() {
79         return configVersion;
80     }
81
82     /**
83      * @param configVersion the configurationVersion to set
84      */
85     public void setConfigVersion(final Integer configVersion) {
86         this.configVersion = configVersion;
87     }
88
89     /**
90      * @return the isConnected
91      */
92     public Boolean getIsConnected() {
93         return isConnected;
94     }
95
96     /**
97      * @param isConnected the isConnected to set
98      */
99     public void setIsConnected(final Boolean isConnected) {
100         this.isConnected = isConnected;
101     }
102
103     /**
104      * @return the dimLevel
105      */
106     public Integer getDimLevel() {
107         return dimLevel;
108     }
109
110     /**
111      * @param dimLevel the dimLevel to set
112      */
113     public void setDimLevel(final Integer dimLevel) {
114         this.dimLevel = dimLevel;
115     }
116
117     /**
118      * @return the onState
119      */
120     public Boolean getOnState() {
121         return onState;
122     }
123
124     /**
125      * @param onState the onState to set
126      */
127     public void setOnState(final Boolean onState) {
128         this.onState = onState;
129     }
130
131     /**
132      * @return the operationMode
133      */
134     public String getOperationMode() {
135         return operationMode;
136     }
137
138     /**
139      * @param operationMode the operationMode to set
140      */
141     public void setOperationMode(final String operationMode) {
142         this.operationMode = operationMode;
143     }
144
145     /**
146      * @return the operationStatus
147      */
148     public String getOperationStatus() {
149         return operationStatus;
150     }
151
152     /**
153      * @param operationStatus the operationStatus to set
154      */
155     public void setOperationStatus(final String operationStatus) {
156         this.operationStatus = operationStatus;
157     }
158
159     /**
160      * @return the pointTemperature
161      */
162     public Double getPointTemperature() {
163         return pointTemperature;
164     }
165
166     /**
167      * @param pointTemperature the pointTemperature to set
168      */
169     public void setPointTemperature(final Double pointTemperature) {
170         this.pointTemperature = pointTemperature;
171     }
172
173     /**
174      * @return the shutterLevel
175      */
176     public Integer getShutterLevel() {
177         return shutterLevel;
178     }
179
180     /**
181      * @param shutterLevel the shutterLevel to set
182      */
183     public void setShutterLevel(final Integer shutterLevel) {
184         this.shutterLevel = shutterLevel;
185     }
186
187     /**
188      * @return the value
189      */
190     public Boolean getValue() {
191         return value;
192     }
193
194     /**
195      * @param value the value to set
196      */
197     public void setValue(final Boolean value) {
198         this.value = value;
199     }
200
201     /**
202      * @return the absoluteEnergyConsumption
203      */
204     public Double getAbsoluteEnergyConsumption() {
205         return absoluteEnergyConsumption;
206     }
207
208     /**
209      * @param absoluteEnergyConsumption the absoluteEnergyConsumption to set
210      */
211     public void setAbsoluteEnergyConsumption(final Double absoluteEnergyConsumption) {
212         this.absoluteEnergyConsumption = absoluteEnergyConsumption;
213     }
214
215     /**
216      * @return the energyConsumptionDayEuro
217      */
218     public Double getEnergyConsumptionDayEuro() {
219         return energyConsumptionDayEuro;
220     }
221
222     /**
223      * @param energyConsumptionDayEuro the energyConsumptionDayEuro to set
224      */
225     public void setEnergyConsumptionDayEuro(final Double energyConsumptionDayEuro) {
226         this.energyConsumptionDayEuro = energyConsumptionDayEuro;
227     }
228
229     /**
230      * @return the energyConsumptionDayKWh
231      */
232     public Double getEnergyConsumptionDayKWh() {
233         return energyConsumptionDayKWh;
234     }
235
236     /**
237      * @param energyConsumptionDayKWh the energyConsumptionDayKWh to set
238      */
239     public void setEnergyConsumptionDayKWh(final Double energyConsumptionDayKWh) {
240         this.energyConsumptionDayKWh = energyConsumptionDayKWh;
241     }
242
243     /**
244      * @return the energyConsumptionMonthEuro
245      */
246     public Double getEnergyConsumptionMonthEuro() {
247         return energyConsumptionMonthEuro;
248     }
249
250     /**
251      * @param energyConsumptionMonthEuro the energyConsumptionMonthEuro to set
252      */
253     public void setEnergyConsumptionMonthEuro(final Double energyConsumptionMonthEuro) {
254         this.energyConsumptionMonthEuro = energyConsumptionMonthEuro;
255     }
256
257     /**
258      * @return the energyConsumptionMonthKWh
259      */
260     public Double getEnergyConsumptionMonthKWh() {
261         return energyConsumptionMonthKWh;
262     }
263
264     /**
265      * @param energyConsumptionMonthKWh the energyConsumptionMonthKWh to set
266      */
267     public void setEnergyConsumptionMonthKWh(final Double energyConsumptionMonthKWh) {
268         this.energyConsumptionMonthKWh = energyConsumptionMonthKWh;
269     }
270
271     /**
272      * @return the energyPerDayInEuro
273      */
274     public Double getEnergyPerDayInEuro() {
275         return energyPerDayInEuro;
276     }
277
278     /**
279      * @param energyPerDayInEuro the energyPerDayInEuro to set
280      */
281     public void setEnergyPerDayInEuro(final Double energyPerDayInEuro) {
282         this.energyPerDayInEuro = energyPerDayInEuro;
283     }
284
285     /**
286      * @return the energyPerDayInKWh
287      */
288     public Double getEnergyPerDayInKWh() {
289         return energyPerDayInKWh;
290     }
291
292     /**
293      * @param energyPerDayInKWh the energyPerDayInKWh to set
294      */
295     public void setEnergyPerDayInKWh(final Double energyPerDayInKWh) {
296         this.energyPerDayInKWh = energyPerDayInKWh;
297     }
298
299     /**
300      * @return the energyPerMonthInEuro
301      */
302     public Double getEnergyPerMonthInEuro() {
303         return energyPerMonthInEuro;
304     }
305
306     /**
307      * @param energyPerMonthInEuro the energyPerMonthInEuro to set
308      */
309     public void setEnergyPerMonthInEuro(final Double energyPerMonthInEuro) {
310         this.energyPerMonthInEuro = energyPerMonthInEuro;
311     }
312
313     /**
314      * @return the energyPerMonthInKWh
315      */
316     public Double getEnergyPerMonthInKWh() {
317         return energyPerMonthInKWh;
318     }
319
320     /**
321      * @param energyPerMonthInKWh the energyPerMonthInKWh to set
322      */
323     public void setEnergyPerMonthInKWh(final Double energyPerMonthInKWh) {
324         this.energyPerMonthInKWh = energyPerMonthInKWh;
325     }
326
327     /**
328      * @return the frostWarning
329      */
330     public Boolean getFrostWarning() {
331         return frostWarning;
332     }
333
334     /**
335      * @param frostWarning the frostWarning to set
336      */
337     public void setFrostWarning(final Boolean frostWarning) {
338         this.frostWarning = frostWarning;
339     }
340
341     /**
342      * @return the humidity
343      */
344     public Double getHumidity() {
345         return humidity;
346     }
347
348     /**
349      * @param humidity the humidity to set
350      */
351     public void setHumidity(final Double humidity) {
352         this.humidity = humidity;
353     }
354
355     /**
356      * @return if the device is reachable
357      */
358     public Boolean getReachable() {
359         return isReachable;
360     }
361
362     /**
363      * @param reachable if the device is reachable
364      */
365     public void setReachable(Boolean reachable) {
366         isReachable = reachable;
367     }
368
369     /**
370      * @return the isOpen
371      */
372     public Boolean getIsOpen() {
373         return isOpen;
374     }
375
376     /**
377      * @param isOpen the isOpen to set
378      */
379     public void setIsOpen(final Boolean isOpen) {
380         this.isOpen = isOpen;
381     }
382
383     /**
384      * @return the isSmokeAlarm
385      */
386     public Boolean getIsSmokeAlarm() {
387         return isSmokeAlarm;
388     }
389
390     /**
391      * @param isSmokeAlarm the isSmokeAlarm to set
392      */
393     public void setIsSmokeAlarm(final Boolean isSmokeAlarm) {
394         this.isSmokeAlarm = isSmokeAlarm;
395     }
396
397     public String getKeyPressType() {
398         return keyPressType;
399     }
400
401     public void setKeyPressType(final String keyPressType) {
402         this.keyPressType = keyPressType;
403     }
404
405     public Integer getKeyPressButtonIndex() {
406         return keyPressButtonIndex;
407     }
408
409     public void setKeyPressButtonIndex(final Integer keyPressButtonIndex) {
410         this.keyPressButtonIndex = keyPressButtonIndex;
411     }
412
413     public Integer getKeyPressCounter() {
414         return keyPressCounter;
415     }
416
417     public void setKeyPressCounter(final Integer keyPressCounter) {
418         this.keyPressCounter = keyPressCounter;
419     }
420
421     public Integer getLastKeyPressButtonIndex() {
422         return lastKeyPressButtonIndex;
423     }
424
425     public void setLastKeyPressButtonIndex(final Integer lastKeyPressButtonIndex) {
426         this.lastKeyPressButtonIndex = lastKeyPressButtonIndex;
427     }
428
429     public Integer getLastKeyPressCounter() {
430         return lastKeyPressCounter;
431     }
432
433     public void setLastKeyPressCounter(final Integer lastKeyPressCounter) {
434         this.lastKeyPressCounter = lastKeyPressCounter;
435     }
436
437     /**
438      * @return the luminance
439      */
440     public Double getLuminance() {
441         return luminance;
442     }
443
444     /**
445      * @param luminance the luminance to set
446      */
447     public void setLuminance(final Double luminance) {
448         this.luminance = luminance;
449     }
450
451     /**
452      * @return the moldWarning
453      */
454     public Boolean getMoldWarning() {
455         return moldWarning;
456     }
457
458     /**
459      * @param moldWarning the moldWarning to set
460      */
461     public void setMoldWarning(final Boolean moldWarning) {
462         this.moldWarning = moldWarning;
463     }
464
465     /**
466      * @return the motionDetectedCount
467      */
468     public Integer getMotionDetectedCount() {
469         return motionDetectedCount;
470     }
471
472     /**
473      * @param motionDetectedCount the motionDetectedCount to set
474      */
475     public void setMotionDetectedCount(final Integer motionDetectedCount) {
476         this.motionDetectedCount = motionDetectedCount;
477     }
478
479     /**
480      * @return the powerConsumptionWatt
481      */
482     public Double getPowerConsumptionWatt() {
483         return powerConsumptionWatt;
484     }
485
486     /**
487      * @param powerConsumptionWatt the powerConsumptionWatt to set
488      */
489     public void setPowerConsumptionWatt(final Double powerConsumptionWatt) {
490         this.powerConsumptionWatt = powerConsumptionWatt;
491     }
492
493     /**
494      * @return the powerInWatt
495      */
496     public Double getPowerInWatt() {
497         return powerInWatt;
498     }
499
500     /**
501      * @param powerInWatt the powerInWatt to set
502      */
503     public void setPowerInWatt(final Double powerInWatt) {
504         this.powerInWatt = powerInWatt;
505     }
506
507     /**
508      * @return the temperature
509      */
510     public Double getTemperature() {
511         return temperature;
512     }
513
514     /**
515      * @param temperature the temperature to set
516      */
517     public void setTemperature(final Double temperature) {
518         this.temperature = temperature;
519     }
520
521     /**
522      * @return the totalEnergy
523      */
524     public Double getTotalEnergy() {
525         return totalEnergy;
526     }
527
528     /**
529      * @param totalEnergy the totalEnergy to set
530      */
531     public void setTotalEnergy(final Double totalEnergy) {
532         this.totalEnergy = totalEnergy;
533     }
534
535     /**
536      * @return the windowReductionActive
537      */
538     public Boolean getWindowReductionActive() {
539         return windowReductionActive;
540     }
541
542     /**
543      * @param windowReductionActive the windowReductionActive to set
544      */
545     public void setWindowReductionActive(final Boolean windowReductionActive) {
546         this.windowReductionActive = windowReductionActive;
547     }
548
549     /**
550      * @param cpuUsage the cpuUsage to set
551      */
552     public void setCpuUsage(final Double cpuUsage) {
553         this.cpuUsage = cpuUsage;
554     }
555
556     /**
557      * @return the cpuUsage
558      */
559     public Double getCpuUsage() {
560         return cpuUsage;
561     }
562
563     /**
564      * @param diskUsage the diskUsage to set
565      */
566     public void setDiskUsage(final Double diskUsage) {
567         this.diskUsage = diskUsage;
568     }
569
570     /**
571      * @return the diskUsage
572      */
573     public Double getDiskUsage() {
574         return diskUsage;
575     }
576
577     /**
578      * @param memoryUsage the memoryUsage to set
579      */
580     public void setMemoryUsage(final Double memoryUsage) {
581         this.memoryUsage = memoryUsage;
582     }
583
584     /**
585      * @return the memoryUsage
586      */
587     public Double getMemoryUsage() {
588         return memoryUsage;
589     }
590
591     public Double getCPULoad() {
592         return cpuLoad;
593     }
594
595     public void setCPULoad(Double cpuLoad) {
596         this.cpuLoad = cpuLoad;
597     }
598
599     public Double getCpuUsage(boolean isSHCClassic) {
600         if (isSHCClassic) {
601             return getCPULoad();
602         }
603         return getCpuUsage();
604     }
605
606     public Double getMemoryLoad() {
607         return memoryLoad;
608     }
609
610     public void setMemoryLoad(Double memoryLoad) {
611         this.memoryLoad = memoryLoad;
612     }
613
614     /**
615      * @return the memoryUsage
616      */
617     public Double getMemoryUsage(boolean isSHCClassic) {
618         if (isSHCClassic) {
619             return getMemoryLoad();
620         }
621         return getMemoryUsage();
622     }
623
624     public String getOSState() {
625         return osState;
626     }
627
628     public void setOSState(String osState) {
629         this.osState = osState;
630     }
631
632     /**
633      * @return the operationStatus
634      */
635     public String getOperationStatus(boolean isSHCClassic) {
636         if (isSHCClassic) {
637             return getOSState();
638         }
639         return getOperationStatus();
640     }
641 }