]> git.basschouten.com Git - openhab-addons.git/blob
f3cd73f73777630874106cecd2b1f40585927172
[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.sensibo.internal.dto.poddetails;
14
15 import java.util.Map;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * All classes in the ..binding.sensibo.dto are data transfer classes used by the GSON mapper. This class reflects a
21  * part of a request/response data structure.
22  *
23  * @author Arne Seime - Initial contribution.
24  */
25 public class PodDetailsDTO {
26     public String id;
27     public String macAddress;
28     public String firmwareVersion;
29     public String firmwareType;
30     @SerializedName("serial")
31     public String serialNumber;
32     public String temperatureUnit;
33     public String productModel;
34     public AcStateDTO acState;
35     @SerializedName("measurements")
36     public MeasurementDTO lastMeasurement;
37     public ConnectionStatusDTO connectionStatus;
38     public RoomDTO room;
39     public ScheduleDTO[] schedules;
40     public TimerDTO timer;
41     private ModeCapabilityWrapperDTO remoteCapabilities;
42
43     public Map<String, ModeCapabilityDTO> getRemoteCapabilities() {
44         return remoteCapabilities.modes;
45     }
46
47     public boolean isAlive() {
48         return connectionStatus.alive;
49     }
50
51     public String getRoomName() {
52         return room.name;
53     }
54 }