]> git.basschouten.com Git - openhab-addons.git/blob
1e57385cf397c08b2c4c96ebe5128321292dd7fc
[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 the gateway status
21  *
22  * @author Jasper van Zuijlen - Initial contribution
23  *
24  */
25 public class GatewayStatus {
26
27     @SerializedName("gatewayId")
28     private String gatewayId;
29
30     @SerializedName("temperatureControlSystems")
31     private List<TemperatureControlSystemStatus> temperatureControlSystems;
32
33     @SerializedName("activeFaults")
34     private List<ActiveFault> activeFaults;
35
36     public List<TemperatureControlSystemStatus> getTemperatureControlSystems() {
37         return temperatureControlSystems;
38     }
39
40     public boolean hasActiveFaults() {
41         return !activeFaults.isEmpty();
42     }
43
44     public ActiveFault getActiveFault(int index) {
45         return activeFaults.get(index);
46     }
47 }