2 * Copyright (c) 2010-2022 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.livisismarthome.internal.client.api.entity.event;
15 import com.google.gson.annotations.SerializedName;
18 * @author Oliver Kuhl - Initial contribution
20 public class EventPropertiesDTO {
22 /** SHC Properties **/
23 private Integer configVersion;
24 private Boolean isConnected;
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;
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;
76 * @return the configurationVersion
78 public Integer getConfigVersion() {
83 * @param configVersion the configurationVersion to set
85 public void setConfigVersion(final Integer configVersion) {
86 this.configVersion = configVersion;
90 * @return the isConnected
92 public Boolean getIsConnected() {
97 * @param isConnected the isConnected to set
99 public void setIsConnected(final Boolean isConnected) {
100 this.isConnected = isConnected;
104 * @return the dimLevel
106 public Integer getDimLevel() {
111 * @param dimLevel the dimLevel to set
113 public void setDimLevel(final Integer dimLevel) {
114 this.dimLevel = dimLevel;
118 * @return the onState
120 public Boolean getOnState() {
125 * @param onState the onState to set
127 public void setOnState(final Boolean onState) {
128 this.onState = onState;
132 * @return the operationMode
134 public String getOperationMode() {
135 return operationMode;
139 * @param operationMode the operationMode to set
141 public void setOperationMode(final String operationMode) {
142 this.operationMode = operationMode;
146 * @return the operationStatus
148 public String getOperationStatus() {
149 return operationStatus;
153 * @param operationStatus the operationStatus to set
155 public void setOperationStatus(final String operationStatus) {
156 this.operationStatus = operationStatus;
160 * @return the pointTemperature
162 public Double getPointTemperature() {
163 return pointTemperature;
167 * @param pointTemperature the pointTemperature to set
169 public void setPointTemperature(final Double pointTemperature) {
170 this.pointTemperature = pointTemperature;
174 * @return the shutterLevel
176 public Integer getShutterLevel() {
181 * @param shutterLevel the shutterLevel to set
183 public void setShutterLevel(final Integer shutterLevel) {
184 this.shutterLevel = shutterLevel;
190 public Boolean getValue() {
195 * @param value the value to set
197 public void setValue(final Boolean value) {
202 * @return the absoluteEnergyConsumption
204 public Double getAbsoluteEnergyConsumption() {
205 return absoluteEnergyConsumption;
209 * @param absoluteEnergyConsumption the absoluteEnergyConsumption to set
211 public void setAbsoluteEnergyConsumption(final Double absoluteEnergyConsumption) {
212 this.absoluteEnergyConsumption = absoluteEnergyConsumption;
216 * @return the energyConsumptionDayEuro
218 public Double getEnergyConsumptionDayEuro() {
219 return energyConsumptionDayEuro;
223 * @param energyConsumptionDayEuro the energyConsumptionDayEuro to set
225 public void setEnergyConsumptionDayEuro(final Double energyConsumptionDayEuro) {
226 this.energyConsumptionDayEuro = energyConsumptionDayEuro;
230 * @return the energyConsumptionDayKWh
232 public Double getEnergyConsumptionDayKWh() {
233 return energyConsumptionDayKWh;
237 * @param energyConsumptionDayKWh the energyConsumptionDayKWh to set
239 public void setEnergyConsumptionDayKWh(final Double energyConsumptionDayKWh) {
240 this.energyConsumptionDayKWh = energyConsumptionDayKWh;
244 * @return the energyConsumptionMonthEuro
246 public Double getEnergyConsumptionMonthEuro() {
247 return energyConsumptionMonthEuro;
251 * @param energyConsumptionMonthEuro the energyConsumptionMonthEuro to set
253 public void setEnergyConsumptionMonthEuro(final Double energyConsumptionMonthEuro) {
254 this.energyConsumptionMonthEuro = energyConsumptionMonthEuro;
258 * @return the energyConsumptionMonthKWh
260 public Double getEnergyConsumptionMonthKWh() {
261 return energyConsumptionMonthKWh;
265 * @param energyConsumptionMonthKWh the energyConsumptionMonthKWh to set
267 public void setEnergyConsumptionMonthKWh(final Double energyConsumptionMonthKWh) {
268 this.energyConsumptionMonthKWh = energyConsumptionMonthKWh;
272 * @return the energyPerDayInEuro
274 public Double getEnergyPerDayInEuro() {
275 return energyPerDayInEuro;
279 * @param energyPerDayInEuro the energyPerDayInEuro to set
281 public void setEnergyPerDayInEuro(final Double energyPerDayInEuro) {
282 this.energyPerDayInEuro = energyPerDayInEuro;
286 * @return the energyPerDayInKWh
288 public Double getEnergyPerDayInKWh() {
289 return energyPerDayInKWh;
293 * @param energyPerDayInKWh the energyPerDayInKWh to set
295 public void setEnergyPerDayInKWh(final Double energyPerDayInKWh) {
296 this.energyPerDayInKWh = energyPerDayInKWh;
300 * @return the energyPerMonthInEuro
302 public Double getEnergyPerMonthInEuro() {
303 return energyPerMonthInEuro;
307 * @param energyPerMonthInEuro the energyPerMonthInEuro to set
309 public void setEnergyPerMonthInEuro(final Double energyPerMonthInEuro) {
310 this.energyPerMonthInEuro = energyPerMonthInEuro;
314 * @return the energyPerMonthInKWh
316 public Double getEnergyPerMonthInKWh() {
317 return energyPerMonthInKWh;
321 * @param energyPerMonthInKWh the energyPerMonthInKWh to set
323 public void setEnergyPerMonthInKWh(final Double energyPerMonthInKWh) {
324 this.energyPerMonthInKWh = energyPerMonthInKWh;
328 * @return the frostWarning
330 public Boolean getFrostWarning() {
335 * @param frostWarning the frostWarning to set
337 public void setFrostWarning(final Boolean frostWarning) {
338 this.frostWarning = frostWarning;
342 * @return the humidity
344 public Double getHumidity() {
349 * @param humidity the humidity to set
351 public void setHumidity(final Double humidity) {
352 this.humidity = humidity;
356 * @return if the device is reachable
358 public Boolean getReachable() {
363 * @param reachable if the device is reachable
365 public void setReachable(Boolean reachable) {
366 isReachable = reachable;
372 public Boolean getIsOpen() {
377 * @param isOpen the isOpen to set
379 public void setIsOpen(final Boolean isOpen) {
380 this.isOpen = isOpen;
384 * @return the isSmokeAlarm
386 public Boolean getIsSmokeAlarm() {
391 * @param isSmokeAlarm the isSmokeAlarm to set
393 public void setIsSmokeAlarm(final Boolean isSmokeAlarm) {
394 this.isSmokeAlarm = isSmokeAlarm;
397 public String getKeyPressType() {
401 public void setKeyPressType(final String keyPressType) {
402 this.keyPressType = keyPressType;
405 public Integer getKeyPressButtonIndex() {
406 return keyPressButtonIndex;
409 public void setKeyPressButtonIndex(final Integer keyPressButtonIndex) {
410 this.keyPressButtonIndex = keyPressButtonIndex;
413 public Integer getKeyPressCounter() {
414 return keyPressCounter;
417 public void setKeyPressCounter(final Integer keyPressCounter) {
418 this.keyPressCounter = keyPressCounter;
421 public Integer getLastKeyPressButtonIndex() {
422 return lastKeyPressButtonIndex;
425 public void setLastKeyPressButtonIndex(final Integer lastKeyPressButtonIndex) {
426 this.lastKeyPressButtonIndex = lastKeyPressButtonIndex;
429 public Integer getLastKeyPressCounter() {
430 return lastKeyPressCounter;
433 public void setLastKeyPressCounter(final Integer lastKeyPressCounter) {
434 this.lastKeyPressCounter = lastKeyPressCounter;
438 * @return the luminance
440 public Double getLuminance() {
445 * @param luminance the luminance to set
447 public void setLuminance(final Double luminance) {
448 this.luminance = luminance;
452 * @return the moldWarning
454 public Boolean getMoldWarning() {
459 * @param moldWarning the moldWarning to set
461 public void setMoldWarning(final Boolean moldWarning) {
462 this.moldWarning = moldWarning;
466 * @return the motionDetectedCount
468 public Integer getMotionDetectedCount() {
469 return motionDetectedCount;
473 * @param motionDetectedCount the motionDetectedCount to set
475 public void setMotionDetectedCount(final Integer motionDetectedCount) {
476 this.motionDetectedCount = motionDetectedCount;
480 * @return the powerConsumptionWatt
482 public Double getPowerConsumptionWatt() {
483 return powerConsumptionWatt;
487 * @param powerConsumptionWatt the powerConsumptionWatt to set
489 public void setPowerConsumptionWatt(final Double powerConsumptionWatt) {
490 this.powerConsumptionWatt = powerConsumptionWatt;
494 * @return the powerInWatt
496 public Double getPowerInWatt() {
501 * @param powerInWatt the powerInWatt to set
503 public void setPowerInWatt(final Double powerInWatt) {
504 this.powerInWatt = powerInWatt;
508 * @return the temperature
510 public Double getTemperature() {
515 * @param temperature the temperature to set
517 public void setTemperature(final Double temperature) {
518 this.temperature = temperature;
522 * @return the totalEnergy
524 public Double getTotalEnergy() {
529 * @param totalEnergy the totalEnergy to set
531 public void setTotalEnergy(final Double totalEnergy) {
532 this.totalEnergy = totalEnergy;
536 * @return the windowReductionActive
538 public Boolean getWindowReductionActive() {
539 return windowReductionActive;
543 * @param windowReductionActive the windowReductionActive to set
545 public void setWindowReductionActive(final Boolean windowReductionActive) {
546 this.windowReductionActive = windowReductionActive;
550 * @param cpuUsage the cpuUsage to set
552 public void setCpuUsage(final Double cpuUsage) {
553 this.cpuUsage = cpuUsage;
557 * @return the cpuUsage
559 public Double getCpuUsage() {
564 * @param diskUsage the diskUsage to set
566 public void setDiskUsage(final Double diskUsage) {
567 this.diskUsage = diskUsage;
571 * @return the diskUsage
573 public Double getDiskUsage() {
578 * @param memoryUsage the memoryUsage to set
580 public void setMemoryUsage(final Double memoryUsage) {
581 this.memoryUsage = memoryUsage;
585 * @return the memoryUsage
587 public Double getMemoryUsage() {
591 public Double getCPULoad() {
595 public void setCPULoad(Double cpuLoad) {
596 this.cpuLoad = cpuLoad;
599 public Double getCpuUsage(boolean isSHCClassic) {
603 return getCpuUsage();
606 public Double getMemoryLoad() {
610 public void setMemoryLoad(Double memoryLoad) {
611 this.memoryLoad = memoryLoad;
615 * @return the memoryUsage
617 public Double getMemoryUsage(boolean isSHCClassic) {
619 return getMemoryLoad();
621 return getMemoryUsage();
624 public String getOSState() {
628 public void setOSState(String osState) {
629 this.osState = osState;
633 * @return the operationStatus
635 public String getOperationStatus(boolean isSHCClassic) {
639 return getOperationStatus();