2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.miio.internal.robot;
15 import com.google.gson.annotations.Expose;
16 import com.google.gson.annotations.SerializedName;
19 * This DTO class wraps the status message json structure
21 * @author Marcel Verpaalen - Initial contribution
23 public class StatusDTO {
25 @SerializedName("msg_ver")
27 private Integer msgVer;
28 @SerializedName("msg_seq")
30 private Integer msgSeq;
31 @SerializedName("state")
33 private Integer state;
34 @SerializedName("battery")
36 private Integer battery;
37 @SerializedName("clean_time")
39 private Long cleanTime;
40 @SerializedName("clean_area")
42 private Integer cleanArea;
43 @SerializedName("error_code")
45 private Integer errorCode;
46 @SerializedName("map_present")
48 private Integer mapPresent;
49 @SerializedName("in_cleaning")
51 private Integer inCleaning;
52 @SerializedName("fan_power")
54 private Integer fanPower;
55 @SerializedName("dnd_enabled")
57 private Integer dndEnabled;
58 @SerializedName("in_returning")
60 private Integer inReturning;
61 @SerializedName("in_fresh_state")
63 private Integer inFreshState;
64 @SerializedName("lab_status")
66 private Integer labStatus;
67 @SerializedName("water_box_status")
69 private Integer waterBoxStatus;
70 @SerializedName("map_status")
72 private Integer mapStatus;
73 @SerializedName("is_locating")
75 private Integer isLocating;
76 @SerializedName("lock_status")
78 private Integer lockStatus;
79 @SerializedName("water_box_mode")
81 private Integer waterBoxMode;
82 @SerializedName("water_box_carriage_status")
84 private Integer waterBoxCarriageStatus;
85 @SerializedName("mop_forbidden_enable")
87 private Integer mopForbiddenEnable;
88 @SerializedName("dry_status")
90 private Integer isMopDryingActive;
91 @SerializedName("rdt")
93 private Long mopDryTime;
94 @SerializedName("dock_error_status")
96 private Integer dockErrorStatus;
98 public final Integer getMsgVer() {
102 public final Integer getMsgSeq() {
106 public final Integer getState() {
110 public final Integer getBattery() {
114 public final Long getCleanTime() {
118 public final Integer getCleanArea() {
122 public final Integer getErrorCode() {
126 public final Integer getMapPresent() {
130 public final Integer getInCleaning() {
134 public final Integer getFanPower() {
138 public final Integer getDndEnabled() {
142 public final Integer getInReturning() {
146 public final Integer getInFreshState() {
150 public final Integer getLabStatus() {
154 public final Integer getWaterBoxStatus() {
155 return waterBoxStatus;
158 public final Integer getMapStatus() {
162 public final Integer getIsLocating() {
166 public final Integer getLockStatus() {
170 public final Integer getWaterBoxMode() {
174 public final Integer getWaterBoxCarriageStatus() {
175 return waterBoxCarriageStatus;
178 public final Integer getMopForbiddenEnable() {
179 return mopForbiddenEnable;
182 public Integer getIsMopDryingActive() {
183 return isMopDryingActive;
186 public Long getMopDryTime() {
190 public Integer getDockErrorStatus() {
191 return this.dockErrorStatus;
194 public void setDockErrorStatus(Integer dockErrorStatus) {
195 this.dockErrorStatus = dockErrorStatus;