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.evohome.internal.api.models.v2.response;
15 import java.util.List;
17 import com.google.gson.annotations.SerializedName;
20 * Response model for zone status
22 * @author Jasper van Zuijlen - Initial contribution
25 public class ZoneStatus {
27 @SerializedName("zoneId")
28 private String zoneId;
30 @SerializedName("name")
33 @SerializedName("temperatureStatus")
34 private TemperatureStatus temperature;
36 @SerializedName("setpointStatus")
37 private HeatSetpointStatus heatSetpoint;
39 @SerializedName("activeFaults")
40 private List<ActiveFault> activeFaults;
42 public String getZoneId() {
46 public TemperatureStatus getTemperature() {
50 public HeatSetpointStatus getHeatSetpoint() {
54 public boolean hasActiveFaults() {
55 return !activeFaults.isEmpty();
58 public ActiveFault getActiveFault(int index) {
59 return activeFaults.get(index);