]> git.basschouten.com Git - openhab-addons.git/blob
b5a4aa9540d037110b7ccc840859ac542ab6b050
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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     double cooltemp;
23     double heattemp;
24
25     VenstarSystemState state;
26     VenstarSystemMode mode;
27     VenstarAwayMode away;
28     int tempunits;
29
30     public VenstarInfoData() {
31         super();
32     }
33
34     public VenstarInfoData(double cooltemp, double heattemp, VenstarSystemState state, VenstarSystemMode mode,
35             VenstarAwayMode away) {
36         super();
37         this.cooltemp = cooltemp;
38         this.heattemp = heattemp;
39         this.state = state;
40         this.mode = mode;
41         this.away = away;
42     }
43
44     public double getCooltemp() {
45         return cooltemp;
46     }
47
48     public void setCooltemp(double cooltemp) {
49         this.cooltemp = cooltemp;
50     }
51
52     public double getHeattemp() {
53         return heattemp;
54     }
55
56     public void setHeattemp(double heattemp) {
57         this.heattemp = heattemp;
58     }
59
60     public VenstarSystemState getState() {
61         return state;
62     }
63
64     public void setState(VenstarSystemState state) {
65         this.state = state;
66     }
67
68     public VenstarSystemMode getMode() {
69         return mode;
70     }
71
72     public void setMode(VenstarSystemMode mode) {
73         this.mode = mode;
74     }
75
76     public int getTempunits() {
77         return tempunits;
78     }
79
80     public void setTempunits(int tempunits) {
81         this.tempunits = tempunits;
82     }
83
84     public VenstarAwayMode getAway() {
85         return away;
86     }
87
88     public void setAwayMode(VenstarAwayMode away) {
89         this.away = away;
90     }
91 }