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.ojelectronics.internal.models;
15 import java.util.List;
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;
22 import com.google.gson.annotations.SerializedName;
25 * Model for a SignalR query result
27 * @author Christian Kittel - Initial contribution
30 public class SignalRResultModel {
31 @SerializedName("Groups")
32 private List<GroupContentModel> groups = List.of();
33 @SerializedName("SequenceNr")
34 private int sequenceNr;
36 @SerializedName("ThermostatRealTimes")
37 private List<ThermostatRealTimeValuesModel> thermostatRealTimes = List.of();
39 @SerializedName("Thermostats")
40 private List<ThermostatModel> thermostats = List.of();
42 public List<GroupContentModel> getGroups() {
46 public int getSequenceNr() {
47 return this.sequenceNr;
50 public List<ThermostatRealTimeValuesModel> getThermostatRealTimes() {
51 return this.thermostatRealTimes;
54 public List<ThermostatModel> getThermostats() {
55 return this.thermostats;
58 public void setGroups(List<GroupContentModel> paramArrayList) {
59 this.groups = paramArrayList;
62 public void setSequenceNr(int paramInt) {
63 this.sequenceNr = paramInt;
66 public void setThermostatRealTimes(List<ThermostatRealTimeValuesModel> paramArrayList) {
67 this.thermostatRealTimes = paramArrayList;
70 public void setThermostats(List<ThermostatModel> paramArrayList) {
71 this.thermostats = paramArrayList;