]> git.basschouten.com Git - openhab-addons.git/blob
3a063ceecf1665d7ec4e8d87fddebef4a9de3759
[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.evohome.internal.api.models.v2.response;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Response model for zone status
21  *
22  * @author Jasper van Zuijlen - Initial contribution
23  *
24  */
25 public class ZoneStatus {
26
27     @SerializedName("zoneId")
28     private String zoneId;
29
30     @SerializedName("name")
31     private String name;
32
33     @SerializedName("temperatureStatus")
34     private TemperatureStatus temperature;
35
36     @SerializedName("setpointStatus")
37     private HeatSetpointStatus heatSetpoint;
38
39     @SerializedName("activeFaults")
40     private List<ActiveFault> activeFaults;
41
42     public String getZoneId() {
43         return zoneId;
44     }
45
46     public TemperatureStatus getTemperature() {
47         return temperature;
48     }
49
50     public HeatSetpointStatus getHeatSetpoint() {
51         return heatSetpoint;
52     }
53
54     public boolean hasActiveFaults() {
55         return !activeFaults.isEmpty();
56     }
57
58     public ActiveFault getActiveFault(int index) {
59         return activeFaults.get(index);
60     }
61 }