]> git.basschouten.com Git - openhab-addons.git/blob
7e4d8457eab854da2e6b66f98d2f1768d3b66133
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.radiothermostat.internal.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link RadioThermostatRuntimeHeatCoolDTO} is responsible for storing
19  * the "heat_runtime" and "cool_runtime" node from the thermostat JSON response
20  *
21  * @author Michael Lobstein - Initial contribution
22  */
23 public class RadioThermostatRuntimeHeatCoolDTO {
24
25     public RadioThermostatRuntimeHeatCoolDTO() {
26     }
27
28     @SerializedName("heat_runtime")
29     private RadioThermostatTimeDTO heatTime;
30
31     @SerializedName("cool_runtime")
32     private RadioThermostatTimeDTO coolTime;
33
34     /**
35      * Receives "heat_runtime" node from the JSON response
36      *
37      * @return {RadioThermostatJsonTime}
38      */
39     public RadioThermostatTimeDTO getHeatTime() {
40         return heatTime;
41     }
42
43     /**
44      * Receives "cool_runtime" node from the JSON response
45      *
46      * @return {RadioThermostatJsonTime}
47      */
48     public RadioThermostatTimeDTO getCoolTime() {
49         return coolTime;
50     }
51 }