]> git.basschouten.com Git - openhab-addons.git/blob
8b8b62220d6ceb2cc36b663b19011cddda81fa26
[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.ojelectronics.internal.models;
14
15 import java.util.List;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.ojelectronics.internal.models.groups.GroupContentModel;
19 import org.openhab.binding.ojelectronics.internal.models.thermostat.ThermostatModel;
20 import org.openhab.binding.ojelectronics.internal.models.thermostat.ThermostatRealTimeValuesModel;
21
22 import com.google.gson.annotations.SerializedName;
23
24 /**
25  * Model for a SignalR query result
26  *
27  * @author Christian Kittel - Initial contribution
28  */
29 @NonNullByDefault
30 public class SignalRResultModel {
31     @SerializedName("Groups")
32     private List<GroupContentModel> groups = List.of();
33     @SerializedName("SequenceNr")
34     private int sequenceNr;
35
36     @SerializedName("ThermostatRealTimes")
37     private List<ThermostatRealTimeValuesModel> thermostatRealTimes = List.of();
38
39     @SerializedName("Thermostats")
40     private List<ThermostatModel> thermostats = List.of();
41
42     public List<GroupContentModel> getGroups() {
43         return this.groups;
44     }
45
46     public int getSequenceNr() {
47         return this.sequenceNr;
48     }
49
50     public List<ThermostatRealTimeValuesModel> getThermostatRealTimes() {
51         return this.thermostatRealTimes;
52     }
53
54     public List<ThermostatModel> getThermostats() {
55         return this.thermostats;
56     }
57
58     public void setGroups(List<GroupContentModel> paramArrayList) {
59         this.groups = paramArrayList;
60     }
61
62     public void setSequenceNr(int paramInt) {
63         this.sequenceNr = paramInt;
64     }
65
66     public void setThermostatRealTimes(List<ThermostatRealTimeValuesModel> paramArrayList) {
67         this.thermostatRealTimes = paramArrayList;
68     }
69
70     public void setThermostats(List<ThermostatModel> paramArrayList) {
71         this.thermostats = paramArrayList;
72     }
73 }