]> git.basschouten.com Git - openhab-addons.git/blob
46c0c17f4c2a6b3b9aaa89b18a1c08014593f283
[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.miio.internal.robot;
14
15 import com.google.gson.annotations.Expose;
16 import com.google.gson.annotations.SerializedName;
17
18 /**
19  * This DTO class wraps the status message json structure
20  *
21  * @author Marcel Verpaalen - Initial contribution
22  */
23 public class StatusDTO {
24
25     @SerializedName("msg_ver")
26     @Expose
27     private Integer msgVer;
28     @SerializedName("msg_seq")
29     @Expose
30     private Integer msgSeq;
31     @SerializedName("state")
32     @Expose
33     private Integer state;
34     @SerializedName("battery")
35     @Expose
36     private Integer battery;
37     @SerializedName("clean_time")
38     @Expose
39     private Long cleanTime;
40     @SerializedName("clean_area")
41     @Expose
42     private Integer cleanArea;
43     @SerializedName("error_code")
44     @Expose
45     private Integer errorCode;
46     @SerializedName("map_present")
47     @Expose
48     private Integer mapPresent;
49     @SerializedName("in_cleaning")
50     @Expose
51     private Integer inCleaning;
52     @SerializedName("fan_power")
53     @Expose
54     private Integer fanPower;
55     @SerializedName("dnd_enabled")
56     @Expose
57     private Integer dndEnabled;
58     @SerializedName("in_returning")
59     @Expose
60     private Integer inReturning;
61     @SerializedName("in_fresh_state")
62     @Expose
63     private Integer inFreshState;
64     @SerializedName("lab_status")
65     @Expose
66     private Integer labStatus;
67     @SerializedName("water_box_status")
68     @Expose
69     private Integer waterBoxStatus;
70     @SerializedName("map_status")
71     @Expose
72     private Integer mapStatus;
73     @SerializedName("is_locating")
74     @Expose
75     private Integer isLocating;
76     @SerializedName("lock_status")
77     @Expose
78     private Integer lockStatus;
79     @SerializedName("water_box_mode")
80     @Expose
81     private Integer waterBoxMode;
82     @SerializedName("water_box_carriage_status")
83     @Expose
84     private Integer waterBoxCarriageStatus;
85     @SerializedName("mop_forbidden_enable")
86     @Expose
87     private Integer mopForbiddenEnable;
88     @SerializedName("dry_status")
89     @Expose
90     private Integer isMopDryingActive;
91     @SerializedName("rdt")
92     @Expose
93     private Long mopDryTime;
94     @SerializedName("dock_error_status")
95     @Expose
96     private Integer dockErrorStatus;
97
98     public final Integer getMsgVer() {
99         return msgVer;
100     }
101
102     public final Integer getMsgSeq() {
103         return msgSeq;
104     }
105
106     public final Integer getState() {
107         return state;
108     }
109
110     public final Integer getBattery() {
111         return battery;
112     }
113
114     public final Long getCleanTime() {
115         return cleanTime;
116     }
117
118     public final Integer getCleanArea() {
119         return cleanArea;
120     }
121
122     public final Integer getErrorCode() {
123         return errorCode;
124     }
125
126     public final Integer getMapPresent() {
127         return mapPresent;
128     }
129
130     public final Integer getInCleaning() {
131         return inCleaning;
132     }
133
134     public final Integer getFanPower() {
135         return fanPower;
136     }
137
138     public final Integer getDndEnabled() {
139         return dndEnabled;
140     }
141
142     public final Integer getInReturning() {
143         return inReturning;
144     }
145
146     public final Integer getInFreshState() {
147         return inFreshState;
148     }
149
150     public final Integer getLabStatus() {
151         return labStatus;
152     }
153
154     public final Integer getWaterBoxStatus() {
155         return waterBoxStatus;
156     }
157
158     public final Integer getMapStatus() {
159         return mapStatus;
160     }
161
162     public final Integer getIsLocating() {
163         return isLocating;
164     }
165
166     public final Integer getLockStatus() {
167         return lockStatus;
168     }
169
170     public final Integer getWaterBoxMode() {
171         return waterBoxMode;
172     }
173
174     public final Integer getWaterBoxCarriageStatus() {
175         return waterBoxCarriageStatus;
176     }
177
178     public final Integer getMopForbiddenEnable() {
179         return mopForbiddenEnable;
180     }
181
182     public Integer getIsMopDryingActive() {
183         return isMopDryingActive;
184     }
185
186     public Long getMopDryTime() {
187         return mopDryTime;
188     }
189
190     public Integer getDockErrorStatus() {
191         return this.dockErrorStatus;
192     }
193
194     public void setDockErrorStatus(Integer dockErrorStatus) {
195         this.dockErrorStatus = dockErrorStatus;
196     }
197 }