]> git.basschouten.com Git - openhab-addons.git/blob
8cb712eef7c01d371f456502e4054b9dc5f5b25d
[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 RadioThermostatRuntimeDTO} is responsible for storing
19  * the "today" and "yesterday" node from the "tstat/datalog" JSON response
20  *
21  * @author Michael Lobstein - Initial contribution
22  */
23 public class RadioThermostatRuntimeDTO {
24
25     @SerializedName("today")
26     private RadioThermostatRuntimeHeatCoolDTO today;
27
28     @SerializedName("yesterday")
29     private RadioThermostatRuntimeHeatCoolDTO yesterday;
30
31     public RadioThermostatRuntimeDTO() {
32     }
33
34     /**
35      * Receives "today" node from the JSON response
36      *
37      * @return {RadioThermostatRuntimeHeatCool}
38      */
39     public RadioThermostatRuntimeHeatCoolDTO getToday() {
40         return today;
41     }
42
43     /**
44      * Receives "yesterday" node from the JSON response
45      *
46      * @return {RadioThermostatRuntimeHeatCool}
47      */
48     public RadioThermostatRuntimeHeatCoolDTO getYesterday() {
49         return yesterday;
50     }
51 }