]> git.basschouten.com Git - openhab-addons.git/blob
356f31adc663d32efdb329d1c70c66ab827c26d6
[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.vesync.internal.dto.responses.v1;
14
15 import org.openhab.binding.vesync.internal.dto.responses.VeSyncResponse;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link VeSyncV1AirPurifierDeviceDetailsResponse} is a Java class used as a DTO to hold the Vesync's V1 API's
21  * common response
22  * data, in regards to an Air Purifier device.
23  *
24  * @author David Goodyear - Initial contribution
25  */
26 public class VeSyncV1AirPurifierDeviceDetailsResponse extends VeSyncResponse {
27
28     @SerializedName("screenStatus")
29     public String screenStatus;
30
31     public String getScreenStatus() {
32         return screenStatus;
33     }
34
35     @SerializedName("airQuality")
36     public int airQuality;
37
38     public int getAirQuality() {
39         return airQuality;
40     }
41
42     @SerializedName("level")
43     public int level;
44
45     public int getLevel() {
46         return level;
47     }
48
49     @SerializedName("mode")
50     public String mode;
51
52     public String getMode() {
53         return mode;
54     }
55
56     @SerializedName("deviceName")
57     public String deviceName;
58
59     public String getDeviceName() {
60         return deviceName;
61     }
62
63     @SerializedName("currentFirmVersion")
64     public String currentFirmVersion;
65
66     public String getCurrentFirmVersion() {
67         return currentFirmVersion;
68     }
69
70     @SerializedName("childLock")
71     public String childLock;
72
73     public String getChildLock() {
74         return childLock;
75     }
76
77     @SerializedName("deviceStatus")
78     public String deviceStatus;
79
80     public String getDeviceStatus() {
81         return deviceStatus;
82     }
83
84     @SerializedName("deviceImg")
85     public String deviceImgUrl;
86
87     public String getDeviceImgUrl() {
88         return deviceImgUrl;
89     }
90
91     @SerializedName("connectionStatus")
92     public String connectionStatus;
93
94     public String getConnectionStatus() {
95         return connectionStatus;
96     }
97
98     public boolean isDeviceOnline() {
99         return "online".equals(connectionStatus);
100     }
101 }