2 * Copyright (c) 2010-2023 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 {
22 private double cooltemp;
23 private double heattemp;
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;
34 public VenstarInfoData() {
38 public VenstarInfoData(double cooltemp, double heattemp, VenstarSystemState state, VenstarSystemMode mode,
39 VenstarAwayMode away, VenstarFanMode fan, VenstarFanState fanstate, VenstarScheduleMode schedule,
40 VenstarSchedulePart schedulepart) {
42 this.cooltemp = cooltemp;
43 this.heattemp = heattemp;
48 this.fanstate = fanstate;
49 this.schedule = schedule;
50 this.schedulepart = schedulepart;
53 public double getCooltemp() {
57 public void setCooltemp(double cooltemp) {
58 this.cooltemp = cooltemp;
61 public double getHeattemp() {
65 public void setHeattemp(double heattemp) {
66 this.heattemp = heattemp;
69 public VenstarSystemState getSystemState() {
73 public void setSystemState(VenstarSystemState state) {
77 public VenstarSystemMode getSystemMode() {
81 public void setSystemMode(VenstarSystemMode mode) {
85 public int getTempunits() {
89 public void setTempunits(int tempunits) {
90 this.tempunits = tempunits;
93 public VenstarAwayMode getAwayMode() {
97 public void setAwayMode(VenstarAwayMode away) {
101 public VenstarFanMode getFanMode() {
105 public void setFanMode(VenstarFanMode fan) {
109 public VenstarFanState getFanState() {
113 public void setFanState(VenstarFanState fanstate) {
114 this.fanstate = fanstate;
117 public VenstarScheduleMode getScheduleMode() {
121 public void setScheduleMode(VenstarScheduleMode schedule) {
122 this.schedule = schedule;
125 public VenstarSchedulePart getSchedulePart() {
129 public void setSchedulePart(VenstarSchedulePart schedulepart) {
130 this.schedulepart = schedulepart;