]> git.basschouten.com Git - openhab-addons.git/blob
8e868e27bffba0ef4b2da1eb821079fb214e7a3b
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.model;
14
15 /**
16  * The {@link VenstarInfoData} represents a thermostat state from the REST API.
17  *
18  * @author William Welliver - Initial contribution
19  */
20 public class VenstarInfoData {
21     double cooltemp;
22     double heattemp;
23
24     VenstarSystemState state;
25     VenstarSystemMode mode;
26     int tempunits;
27
28     public VenstarInfoData() {
29         super();
30     }
31
32     public VenstarInfoData(double cooltemp, double heattemp, VenstarSystemState state, VenstarSystemMode mode) {
33         super();
34         this.cooltemp = cooltemp;
35         this.heattemp = heattemp;
36         this.state = state;
37         this.mode = mode;
38     }
39
40     public double getCooltemp() {
41         return cooltemp;
42     }
43
44     public void setCooltemp(double cooltemp) {
45         this.cooltemp = cooltemp;
46     }
47
48     public double getHeattemp() {
49         return heattemp;
50     }
51
52     public void setHeattemp(double heattemp) {
53         this.heattemp = heattemp;
54     }
55
56     public VenstarSystemState getState() {
57         return state;
58     }
59
60     public void setState(VenstarSystemState state) {
61         this.state = state;
62     }
63
64     public VenstarSystemMode getMode() {
65         return mode;
66     }
67
68     public void setMode(VenstarSystemMode mode) {
69         this.mode = mode;
70     }
71
72     public int getTempunits() {
73         return tempunits;
74     }
75
76     public void setTempunits(int tempunits) {
77         this.tempunits = tempunits;
78     }
79 }