]> git.basschouten.com Git - openhab-addons.git/blob
193fd6acae8b0236f23fb71846605c6ca7c85ec4
[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;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link VeSyncV2BypassPurifierStatus} is a Java class used as a DTO to hold the Vesync's API's common response
19  * data,
20  * in regards to an Air Purifier device.
21  *
22  * @author David Goodyear - Initial contribution
23  */
24 public class VeSyncV2BypassPurifierStatus extends VeSyncResponse {
25
26     @SerializedName("result")
27     public PurifierStatus result;
28
29     public class PurifierStatus extends VeSyncResponse {
30
31         @SerializedName("result")
32         public AirPurifierStatus result;
33
34         public class AirPurifierStatus {
35             @SerializedName("enabled")
36             public boolean enabled;
37
38             @SerializedName("filter_life")
39             public int filterLife;
40
41             @SerializedName("mode")
42             public String mode;
43
44             @SerializedName("level")
45             public int level;
46
47             @SerializedName("air_quality")
48             public int airQuality;
49
50             @SerializedName("air_quality_value")
51             public int airQualityValue;
52
53             @SerializedName("display")
54             public boolean display;
55
56             @SerializedName("child_lock")
57             public boolean childLock;
58
59             @SerializedName("night_light")
60             public String nightLight;
61
62             @SerializedName("configuration")
63             public AirPurifierConfig configuration;
64
65             public class AirPurifierConfig {
66                 @SerializedName("display")
67                 public boolean display;
68
69                 @SerializedName("display_forever")
70                 public boolean displayForever;
71
72                 @SerializedName("auto_preference")
73                 public AirPurifierConfigAutoPref autoPreference;
74
75                 public class AirPurifierConfigAutoPref {
76                     @SerializedName("type")
77                     public String autoType;
78
79                     @SerializedName("room_size")
80                     public int roomSize;
81                 }
82             }
83
84             @SerializedName("extension")
85             public AirPurifierExtension extension;
86
87             public class AirPurifierExtension {
88                 @SerializedName("schedule_count")
89                 public int scheduleCount;
90
91                 @SerializedName("timer_remain")
92                 public int timerRemain;
93             }
94
95             @SerializedName("device_error_code")
96             public int deviceErrorCode;
97         }
98     }
99 }