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.radiothermostat.internal.dto;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link RadioThermostatRuntimeHeatCoolDTO} is responsible for storing
19 * the "heat_runtime" and "cool_runtime" node from the thermostat JSON response
21 * @author Michael Lobstein - Initial contribution
23 public class RadioThermostatRuntimeHeatCoolDTO {
25 public RadioThermostatRuntimeHeatCoolDTO() {
28 @SerializedName("heat_runtime")
29 private RadioThermostatTimeDTO heatTime;
31 @SerializedName("cool_runtime")
32 private RadioThermostatTimeDTO coolTime;
35 * Receives "heat_runtime" node from the JSON response
37 * @return {RadioThermostatJsonTime}
39 public RadioThermostatTimeDTO getHeatTime() {
44 * Receives "cool_runtime" node from the JSON response
46 * @return {RadioThermostatJsonTime}
48 public RadioThermostatTimeDTO getCoolTime() {