]> git.basschouten.com Git - openhab-addons.git/blob
0a9605f6f4da4779b173624583855c671cebe782
[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
89     public final Integer getMsgVer() {
90         return msgVer;
91     }
92
93     public final Integer getMsgSeq() {
94         return msgSeq;
95     }
96
97     public final Integer getState() {
98         return state;
99     }
100
101     public final Integer getBattery() {
102         return battery;
103     }
104
105     public final Long getCleanTime() {
106         return cleanTime;
107     }
108
109     public final Integer getCleanArea() {
110         return cleanArea;
111     }
112
113     public final Integer getErrorCode() {
114         return errorCode;
115     }
116
117     public final Integer getMapPresent() {
118         return mapPresent;
119     }
120
121     public final Integer getInCleaning() {
122         return inCleaning;
123     }
124
125     public final Integer getFanPower() {
126         return fanPower;
127     }
128
129     public final Integer getDndEnabled() {
130         return dndEnabled;
131     }
132
133     public final Integer getInReturning() {
134         return inReturning;
135     }
136
137     public final Integer getInFreshState() {
138         return inFreshState;
139     }
140
141     public final Integer getLabStatus() {
142         return labStatus;
143     }
144
145     public final Integer getWaterBoxStatus() {
146         return waterBoxStatus;
147     }
148
149     public final Integer getMapStatus() {
150         return mapStatus;
151     }
152
153     public final Integer getIsLocating() {
154         return isLocating;
155     }
156
157     public final Integer getLockStatus() {
158         return lockStatus;
159     }
160
161     public final Integer getWaterBoxMode() {
162         return waterBoxMode;
163     }
164
165     public final Integer getWaterBoxCarriageStatus() {
166         return waterBoxCarriageStatus;
167     }
168
169     public final Integer getMopForbiddenEnable() {
170         return mopForbiddenEnable;
171     }
172 }