2 * Copyright (c) 2010-2021 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.venstarthermostat.internal.dto;
16 * The {@link VenstarInfoData} represents a thermostat state from the REST API.
18 * @author William Welliver - Initial contribution
19 * @author Matthew Davies - added VenstarAwayMode to include away mode in binding
21 public class VenstarInfoData {
25 VenstarSystemState state;
26 VenstarSystemMode mode;
30 public VenstarInfoData() {
34 public VenstarInfoData(double cooltemp, double heattemp, VenstarSystemState state, VenstarSystemMode mode,
35 VenstarAwayMode away) {
37 this.cooltemp = cooltemp;
38 this.heattemp = heattemp;
44 public double getCooltemp() {
48 public void setCooltemp(double cooltemp) {
49 this.cooltemp = cooltemp;
52 public double getHeattemp() {
56 public void setHeattemp(double heattemp) {
57 this.heattemp = heattemp;
60 public VenstarSystemState getState() {
64 public void setState(VenstarSystemState state) {
68 public VenstarSystemMode getMode() {
72 public void setMode(VenstarSystemMode mode) {
76 public int getTempunits() {
80 public void setTempunits(int tempunits) {
81 this.tempunits = tempunits;
84 public VenstarAwayMode getAway() {
88 public void setAwayMode(VenstarAwayMode away) {