]> git.basschouten.com Git - openhab-addons.git/blob
5dc96cb4748dd50a3fa68c9e36c8547f1d69fe8a
[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.innogysmarthome.internal.client.entity.capability;
14
15 import org.openhab.binding.innogysmarthome.internal.client.entity.state.BooleanState;
16 import org.openhab.binding.innogysmarthome.internal.client.entity.state.DateTimeState;
17 import org.openhab.binding.innogysmarthome.internal.client.entity.state.DoubleState;
18 import org.openhab.binding.innogysmarthome.internal.client.entity.state.IntegerState;
19 import org.openhab.binding.innogysmarthome.internal.client.entity.state.StringState;
20
21 import com.google.gson.annotations.SerializedName;
22
23 /**
24  * Holds the Capability state.
25  *
26  * @author Oliver Kuhl - Initial contribution
27  *
28  */
29 public class State {
30
31     @SerializedName("absoluteEnergyConsumption")
32     private DoubleState absoluteEnergyConsumptionState;
33
34     @SerializedName("activeChannel")
35     private StringState activeChannelState;
36
37     @SerializedName("dimLevel")
38     private IntegerState dimLevelState;
39
40     @SerializedName("energyConsumptionDayEuro")
41     private DoubleState energyConsumptionDayEuroState;
42
43     @SerializedName("energyConsumptionDayKWh")
44     private DoubleState energyConsumptionDayKWhState;
45
46     @SerializedName("energyConsumptionMonthEuro")
47     private DoubleState energyConsumptionMonthEuroState;
48
49     @SerializedName("energyConsumptionMonthKWh")
50     private DoubleState energyConsumptionMonthKWhState;
51
52     @SerializedName("energyPerDayInEuro")
53     private DoubleState energyPerDayInEuroState;
54
55     @SerializedName("energyPerDayInKWh")
56     private DoubleState energyPerDayInKWhState;
57
58     @SerializedName("energyPerMonthInEuro")
59     private DoubleState energyPerMonthInEuroState;
60
61     @SerializedName("energyPerMonthInKWh")
62     private DoubleState energyPerMonthInKWhState;
63
64     @SerializedName("frostWarning")
65     private BooleanState frostWarningState;
66
67     @SerializedName("humidity")
68     private DoubleState humidityState;
69
70     @SerializedName("isDay")
71     private BooleanState isDayState;
72
73     @SerializedName("isOn")
74     private BooleanState isOnState;
75
76     @SerializedName("isOpen")
77     private BooleanState isOpenState;
78
79     @SerializedName("isSmokeAlarm")
80     private BooleanState isSmokeAlarmState;
81
82     @SerializedName("lastKeyPressCounter")
83     private IntegerState lastKeyPressCounterState;
84
85     @SerializedName("lastPressedButtonIndex")
86     private IntegerState lastPressedButtonIndex;
87
88     private StringState lastPressedButtonIndexState;
89
90     @SerializedName("luminance")
91     private DoubleState luminanceState;
92
93     @SerializedName("moldWarning")
94     private BooleanState moldWarningState;
95
96     @SerializedName("motionDetectedCount")
97     private IntegerState motionDetectedCountState;
98
99     @SerializedName("nextSunrise")
100     private DateTimeState nextSunrise;
101
102     @SerializedName("nextSunset")
103     private DateTimeState nextSunsetState;
104
105     @SerializedName("nextTimeEvent")
106     private DateTimeState nextTimeEventState;
107
108     @SerializedName("onState")
109     private BooleanState onState;
110
111     @SerializedName("operationMode")
112     private StringState operationModeState;
113
114     @SerializedName("pointTemperature")
115     private DoubleState pointTemperatureState;
116
117     @SerializedName("powerConsumptionWatt")
118     private DoubleState powerConsumptionWattState;
119
120     @SerializedName("powerInWatt")
121     private DoubleState powerInWattState;
122
123     @SerializedName("shutterLevel")
124     private IntegerState shutterLevelState;
125
126     @SerializedName("supplyValueInCubicMetterPerDay")
127     private DoubleState supplyValueInCubicMetterPerDayState;
128
129     @SerializedName("supplyValueInCubicMetterPerMonth")
130     private DoubleState supplyValueInCubicMetterPerMonthState;
131
132     @SerializedName("supplyValueInCurrencyPerDay")
133     private DoubleState supplyValueInCurrencyPerDayState;
134
135     @SerializedName("supplyValueInCurrencyPerMonth")
136     private DoubleState supplyValueInCurrencyPerMonthState;
137
138     @SerializedName("supplyValueInLitrePerDay")
139     private DoubleState supplyValueInLitrePerDayState;
140
141     @SerializedName("supplyValueInLitrePerMonth")
142     private DoubleState supplyValueInLitrePerMonthState;
143
144     @SerializedName("temperature")
145     private DoubleState temperatureState;
146
147     @SerializedName("totalEnergy")
148     private DoubleState totalEnergyState;
149
150     @SerializedName("value")
151     private BooleanState valueState;
152
153     @SerializedName("valvePosition")
154     private BooleanState valvePositionState;
155
156     @SerializedName("windowReductionActive")
157     private BooleanState windowReductionActiveState;
158
159     /**
160      * @return the absoluteEnergyConsumptionState
161      */
162     public DoubleState getAbsoluteEnergyConsumptionState() {
163         return absoluteEnergyConsumptionState;
164     }
165
166     /**
167      * @param state the absoluteEnergyConsumptionState to set
168      */
169     public void setAbsoluteEnergyConsumptionState(DoubleState state) {
170         this.absoluteEnergyConsumptionState = state;
171     }
172
173     /**
174      * @return the activeChannelState
175      */
176     public StringState getActiveChannelState() {
177         return activeChannelState;
178     }
179
180     /**
181      * @param state the activeChannelState to set
182      */
183     public void setActiveChannelState(StringState state) {
184         this.activeChannelState = state;
185     }
186
187     /**
188      * @return the dimLevelState
189      */
190     public IntegerState getDimLevelState() {
191         return dimLevelState;
192     }
193
194     /**
195      * @param state the dimLevelState to set
196      */
197     public void setDimLevelState(IntegerState state) {
198         this.dimLevelState = state;
199     }
200
201     /**
202      * @return the energyConsumptionDayEuroState
203      */
204     public DoubleState getEnergyConsumptionDayEuroState() {
205         return energyConsumptionDayEuroState;
206     }
207
208     /**
209      * @param state the energyConsumptionDayEuroState to set
210      */
211     public void setEnergyConsumptionDayEuroState(DoubleState state) {
212         this.energyConsumptionDayEuroState = state;
213     }
214
215     /**
216      * @return the energyConsumptionDayKWhState
217      */
218     public DoubleState getEnergyConsumptionDayKWhState() {
219         return energyConsumptionDayKWhState;
220     }
221
222     /**
223      * @param state the energyConsumptionDayKWhState to set
224      */
225     public void setEnergyConsumptionDayKWhState(DoubleState state) {
226         this.energyConsumptionDayKWhState = state;
227     }
228
229     /**
230      * @return the energyConsumptionMonthEuroState
231      */
232     public DoubleState getEnergyConsumptionMonthEuroState() {
233         return energyConsumptionMonthEuroState;
234     }
235
236     /**
237      * @param state the energyConsumptionMonthEuroState to set
238      */
239     public void setEnergyConsumptionMonthEuroState(DoubleState state) {
240         this.energyConsumptionMonthEuroState = state;
241     }
242
243     /**
244      * @return the energyConsumptionMonthKWhState
245      */
246     public DoubleState getEnergyConsumptionMonthKWhState() {
247         return energyConsumptionMonthKWhState;
248     }
249
250     /**
251      * @param state the energyConsumptionMonthKWhState to set
252      */
253     public void setEnergyConsumptionMonthKWhState(DoubleState state) {
254         this.energyConsumptionMonthKWhState = state;
255     }
256
257     /**
258      * @return the energyPerDayInEuroState
259      */
260     public DoubleState getEnergyPerDayInEuroState() {
261         return energyPerDayInEuroState;
262     }
263
264     /**
265      * @param state the energyPerDayInEuroState to set
266      */
267     public void setEnergyPerDayInEuroState(DoubleState state) {
268         this.energyPerDayInEuroState = state;
269     }
270
271     /**
272      * @return the energyPerDayInKWhState
273      */
274     public DoubleState getEnergyPerDayInKWhState() {
275         return energyPerDayInKWhState;
276     }
277
278     /**
279      * @param state the energyPerDayInKWhState to set
280      */
281     public void setEnergyPerDayInKWhState(DoubleState state) {
282         this.energyPerDayInKWhState = state;
283     }
284
285     /**
286      * @return the energyPerMonthInEuroState
287      */
288     public DoubleState getEnergyPerMonthInEuroState() {
289         return energyPerMonthInEuroState;
290     }
291
292     /**
293      * @param state the energyPerMonthInEuroState to set
294      */
295     public void setEnergyPerMonthInEuroState(DoubleState state) {
296         this.energyPerMonthInEuroState = state;
297     }
298
299     /**
300      * @return the energyPerMonthInKWhState
301      */
302     public DoubleState getEnergyPerMonthInKWhState() {
303         return energyPerMonthInKWhState;
304     }
305
306     /**
307      * @param state the energyPerMonthInKWhState to set
308      */
309     public void setEnergyPerMonthInKWhState(DoubleState state) {
310         this.energyPerMonthInKWhState = state;
311     }
312
313     /**
314      * @return the frostWarningState
315      */
316     public BooleanState getFrostWarningState() {
317         return frostWarningState;
318     }
319
320     /**
321      * @param state the frostWarningState to set
322      */
323     public void setFrostWarningState(BooleanState state) {
324         this.frostWarningState = state;
325     }
326
327     /**
328      * @return the humidityState
329      */
330     public DoubleState getHumidityState() {
331         return humidityState;
332     }
333
334     /**
335      * @param state the humidityState to set
336      */
337     public void setHumidityState(DoubleState state) {
338         this.humidityState = state;
339     }
340
341     /**
342      * @return the isDayState
343      */
344     public BooleanState getIsDayState() {
345         return isDayState;
346     }
347
348     /**
349      * @param state the isDayState to set
350      */
351     public void setIsDayState(BooleanState state) {
352         this.isDayState = state;
353     }
354
355     /**
356      * @return the isOnState
357      */
358     public BooleanState getIsOnState() {
359         return isOnState;
360     }
361
362     /**
363      * @param state the isOnState to set
364      */
365     public void setIsOnState(BooleanState state) {
366         this.isOnState = state;
367     }
368
369     /**
370      * @return the isOpenState
371      */
372     public BooleanState getIsOpenState() {
373         return isOpenState;
374     }
375
376     /**
377      * @param state the isOpenState to set
378      */
379     public void setIsOpenState(BooleanState state) {
380         this.isOpenState = state;
381     }
382
383     /**
384      * @return the isSmokeAlarmState
385      */
386     public BooleanState getIsSmokeAlarmState() {
387         return isSmokeAlarmState;
388     }
389
390     /**
391      * @param state the isSmokeAlarmState to set
392      */
393     public void setIsSmokeAlarmState(BooleanState state) {
394         this.isSmokeAlarmState = state;
395     }
396
397     /**
398      * @return the lastKeyPressCounterState
399      */
400     public IntegerState getLastKeyPressCounterState() {
401         return lastKeyPressCounterState;
402     }
403
404     /**
405      * @param state the lastKeyPressCounterState to set
406      */
407     public void setLastKeyPressCounterState(IntegerState state) {
408         this.lastKeyPressCounterState = state;
409     }
410
411     /**
412      * @return the lastPressedButtonIndex
413      */
414     public IntegerState getLastPressedButtonIndex() {
415         return lastPressedButtonIndex;
416     }
417
418     /**
419      * @param state the lastPressedButtonIndex to set
420      */
421     public void setLastPressedButtonIndex(IntegerState state) {
422         this.lastPressedButtonIndex = state;
423     }
424
425     public StringState getLastKeyPressType() {
426         if (lastPressedButtonIndexState == null) {
427             lastPressedButtonIndexState = new StringState();
428         }
429         return lastPressedButtonIndexState;
430     }
431
432     public void setLastKeyPressType(StringState lastPressedButtonIndexState) {
433         this.lastPressedButtonIndexState = lastPressedButtonIndexState;
434     }
435
436     /**
437      * @return the luminanceState
438      */
439     public DoubleState getLuminanceState() {
440         return luminanceState;
441     }
442
443     /**
444      * @param state the luminanceState to set
445      */
446     public void setLuminanceState(DoubleState state) {
447         this.luminanceState = state;
448     }
449
450     /**
451      * @return the moldWarningState
452      */
453     public BooleanState getMoldWarningState() {
454         return moldWarningState;
455     }
456
457     /**
458      * @param state the moldWarningState to set
459      */
460     public void setMoldWarningState(BooleanState state) {
461         this.moldWarningState = state;
462     }
463
464     /**
465      * @return the motionDetectedCountState
466      */
467     public IntegerState getMotionDetectedCountState() {
468         return motionDetectedCountState;
469     }
470
471     /**
472      * @param state the motionDetectedCountState to set
473      */
474     public void setMotionDetectedCountState(IntegerState state) {
475         this.motionDetectedCountState = state;
476     }
477
478     /**
479      * @return the nextSunrise
480      */
481     public DateTimeState getNextSunrise() {
482         return nextSunrise;
483     }
484
485     /**
486      * @param state the nextSunrise to set
487      */
488     public void setNextSunrise(DateTimeState state) {
489         this.nextSunrise = state;
490     }
491
492     /**
493      * @return the nextSunsetState
494      */
495     public DateTimeState getNextSunsetState() {
496         return nextSunsetState;
497     }
498
499     /**
500      * @param state the nextSunsetState to set
501      */
502     public void setNextSunsetState(DateTimeState state) {
503         this.nextSunsetState = state;
504     }
505
506     /**
507      * @return the nextTimeEventState
508      */
509     public DateTimeState getNextTimeEventState() {
510         return nextTimeEventState;
511     }
512
513     /**
514      * @param state the nextTimeEventState to set
515      */
516     public void setNextTimeEventState(DateTimeState state) {
517         this.nextTimeEventState = state;
518     }
519
520     /**
521      * @return the onState
522      */
523     public BooleanState getOnState() {
524         return onState;
525     }
526
527     /**
528      * @param state the onState to set
529      */
530     public void setOnState(BooleanState state) {
531         this.onState = state;
532     }
533
534     /**
535      * @return the operationModeState
536      */
537     public StringState getOperationModeState() {
538         return operationModeState;
539     }
540
541     /**
542      * @param state the operationModeState to set
543      */
544     public void setOperationModeState(StringState state) {
545         this.operationModeState = state;
546     }
547
548     /**
549      * @return the pointTemperatureState
550      */
551     public DoubleState getPointTemperatureState() {
552         return pointTemperatureState;
553     }
554
555     /**
556      * @param state the pointTemperatureState to set
557      */
558     public void setPointTemperatureState(DoubleState state) {
559         this.pointTemperatureState = state;
560     }
561
562     /**
563      * @return the powerConsumptionWattState
564      */
565     public DoubleState getPowerConsumptionWattState() {
566         return powerConsumptionWattState;
567     }
568
569     /**
570      * @param state the powerConsumptionWattState to set
571      */
572     public void setPowerConsumptionWattState(DoubleState state) {
573         this.powerConsumptionWattState = state;
574     }
575
576     /**
577      * @return the powerInWattState
578      */
579     public DoubleState getPowerInWattState() {
580         return powerInWattState;
581     }
582
583     /**
584      * @param state the powerInWattState to set
585      */
586     public void setPowerInWattState(DoubleState state) {
587         this.powerInWattState = state;
588     }
589
590     /**
591      * @return the shutterLevelState
592      */
593     public IntegerState getShutterLevelState() {
594         return shutterLevelState;
595     }
596
597     /**
598      * @param state the shutterLevelState to set
599      */
600     public void setShutterLevelState(IntegerState state) {
601         this.shutterLevelState = state;
602     }
603
604     /**
605      * @return the supplyValueInCubicMetterPerDayState
606      */
607     public DoubleState getSupplyValueInCubicMetterPerDayState() {
608         return supplyValueInCubicMetterPerDayState;
609     }
610
611     /**
612      * @param state the supplyValueInCubicMetterPerDayState to set
613      */
614     public void setSupplyValueInCubicMetterPerDayState(DoubleState state) {
615         this.supplyValueInCubicMetterPerDayState = state;
616     }
617
618     /**
619      * @return the supplyValueInCubicMetterPerMonthState
620      */
621     public DoubleState getSupplyValueInCubicMetterPerMonthState() {
622         return supplyValueInCubicMetterPerMonthState;
623     }
624
625     /**
626      * @param state the supplyValueInCubicMetterPerMonthState to set
627      */
628     public void setSupplyValueInCubicMetterPerMonthState(DoubleState state) {
629         this.supplyValueInCubicMetterPerMonthState = state;
630     }
631
632     /**
633      * @return the supplyValueInCurrencyPerDayState
634      */
635     public DoubleState getSupplyValueInCurrencyPerDayState() {
636         return supplyValueInCurrencyPerDayState;
637     }
638
639     /**
640      * @param state the supplyValueInCurrencyPerDayState to set
641      */
642     public void setSupplyValueInCurrencyPerDayState(DoubleState state) {
643         this.supplyValueInCurrencyPerDayState = state;
644     }
645
646     /**
647      * @return the supplyValueInCurrencyPerMonthState
648      */
649     public DoubleState getSupplyValueInCurrencyPerMonthState() {
650         return supplyValueInCurrencyPerMonthState;
651     }
652
653     /**
654      * @param state the supplyValueInCurrencyPerMonthState to set
655      */
656     public void setSupplyValueInCurrencyPerMonthState(DoubleState state) {
657         this.supplyValueInCurrencyPerMonthState = state;
658     }
659
660     /**
661      * @return the supplyValueInLitrePerDayState
662      */
663     public DoubleState getSupplyValueInLitrePerDayState() {
664         return supplyValueInLitrePerDayState;
665     }
666
667     /**
668      * @param state the supplyValueInLitrePerDayState to set
669      */
670     public void setSupplyValueInLitrePerDayState(DoubleState state) {
671         this.supplyValueInLitrePerDayState = state;
672     }
673
674     /**
675      * @return the supplyValueInLitrePerMonthState
676      */
677     public DoubleState getSupplyValueInLitrePerMonthState() {
678         return supplyValueInLitrePerMonthState;
679     }
680
681     /**
682      * @param state the supplyValueInLitrePerMonthState to set
683      */
684     public void setSupplyValueInLitrePerMonthState(DoubleState state) {
685         this.supplyValueInLitrePerMonthState = state;
686     }
687
688     /**
689      * @return the temperatureState
690      */
691     public DoubleState getTemperatureState() {
692         return temperatureState;
693     }
694
695     /**
696      * @param state the temperatureState to set
697      */
698     public void setTemperatureState(DoubleState state) {
699         this.temperatureState = state;
700     }
701
702     /**
703      * @return the totalEnergyState
704      */
705     public DoubleState getTotalEnergyState() {
706         return totalEnergyState;
707     }
708
709     /**
710      * @param state the totalEnergyState to set
711      */
712     public void setTotalEnergyState(DoubleState state) {
713         this.totalEnergyState = state;
714     }
715
716     /**
717      * @return the valueState
718      */
719     public BooleanState getValueState() {
720         return valueState;
721     }
722
723     /**
724      * @param state the valueState to set
725      */
726     public void setValueState(BooleanState state) {
727         this.valueState = state;
728     }
729
730     /**
731      * @return the valvePositionState
732      */
733     public BooleanState getValvePositionState() {
734         return valvePositionState;
735     }
736
737     /**
738      * @param state the valvePositionState to set
739      */
740     public void setValvePositionState(BooleanState state) {
741         this.valvePositionState = state;
742     }
743
744     /**
745      * @return the windowReductionActiveState
746      */
747     public BooleanState getWindowReductionActiveState() {
748         return windowReductionActiveState;
749     }
750
751     /**
752      * @param state the windowReductionActiveState to set
753      */
754     public void setWindowReductionActiveState(BooleanState state) {
755         this.windowReductionActiveState = state;
756     }
757 }