]> git.basschouten.com Git - openhab-addons.git/blob
6b69fb51b5270f8f807c33deac0f1d5ae12bc40a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.venstarthermostat.internal.dto;
14
15 /**
16  * The {@link VenstarInfoData} represents a thermostat state from the REST API.
17  *
18  * @author William Welliver - Initial contribution
19  * @author Matthew Davies - added VenstarAwayMode to include away mode in binding
20  */
21 public class VenstarInfoData {
22     private double cooltemp;
23     private double heattemp;
24
25     private VenstarSystemState state;
26     private VenstarSystemMode mode;
27     private VenstarAwayMode away;
28     private VenstarFanMode fan;
29     private VenstarFanState fanstate;
30     private VenstarScheduleMode schedule;
31     private VenstarSchedulePart schedulepart;
32     private int tempunits;
33
34     public VenstarInfoData() {
35         super();
36     }
37
38     public VenstarInfoData(double cooltemp, double heattemp, VenstarSystemState state, VenstarSystemMode mode,
39             VenstarAwayMode away, VenstarFanMode fan, VenstarFanState fanstate, VenstarScheduleMode schedule,
40             VenstarSchedulePart schedulepart) {
41         super();
42         this.cooltemp = cooltemp;
43         this.heattemp = heattemp;
44         this.state = state;
45         this.mode = mode;
46         this.away = away;
47         this.fan = fan;
48         this.fanstate = fanstate;
49         this.schedule = schedule;
50         this.schedulepart = schedulepart;
51     }
52
53     public double getCooltemp() {
54         return cooltemp;
55     }
56
57     public void setCooltemp(double cooltemp) {
58         this.cooltemp = cooltemp;
59     }
60
61     public double getHeattemp() {
62         return heattemp;
63     }
64
65     public void setHeattemp(double heattemp) {
66         this.heattemp = heattemp;
67     }
68
69     public VenstarSystemState getSystemState() {
70         return state;
71     }
72
73     public void setSystemState(VenstarSystemState state) {
74         this.state = state;
75     }
76
77     public VenstarSystemMode getSystemMode() {
78         return mode;
79     }
80
81     public void setSystemMode(VenstarSystemMode mode) {
82         this.mode = mode;
83     }
84
85     public int getTempunits() {
86         return tempunits;
87     }
88
89     public void setTempunits(int tempunits) {
90         this.tempunits = tempunits;
91     }
92
93     public VenstarAwayMode getAwayMode() {
94         return away;
95     }
96
97     public void setAwayMode(VenstarAwayMode away) {
98         this.away = away;
99     }
100
101     public VenstarFanMode getFanMode() {
102         return fan;
103     }
104
105     public void setFanMode(VenstarFanMode fan) {
106         this.fan = fan;
107     }
108
109     public VenstarFanState getFanState() {
110         return fanstate;
111     }
112
113     public void setFanState(VenstarFanState fanstate) {
114         this.fanstate = fanstate;
115     }
116
117     public VenstarScheduleMode getScheduleMode() {
118         return schedule;
119     }
120
121     public void setScheduleMode(VenstarScheduleMode schedule) {
122         this.schedule = schedule;
123     }
124
125     public VenstarSchedulePart getSchedulePart() {
126         return schedulepart;
127     }
128
129     public void setSchedulePart(VenstarSchedulePart schedulepart) {
130         this.schedulepart = schedulepart;
131     }
132 }