2 * Copyright (c) 2010-2022 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;
89 public final Integer getMsgVer() {
93 public final Integer getMsgSeq() {
97 public final Integer getState() {
101 public final Integer getBattery() {
105 public final Long getCleanTime() {
109 public final Integer getCleanArea() {
113 public final Integer getErrorCode() {
117 public final Integer getMapPresent() {
121 public final Integer getInCleaning() {
125 public final Integer getFanPower() {
129 public final Integer getDndEnabled() {
133 public final Integer getInReturning() {
137 public final Integer getInFreshState() {
141 public final Integer getLabStatus() {
145 public final Integer getWaterBoxStatus() {
146 return waterBoxStatus;
149 public final Integer getMapStatus() {
153 public final Integer getIsLocating() {
157 public final Integer getLockStatus() {
161 public final Integer getWaterBoxMode() {
165 public final Integer getWaterBoxCarriageStatus() {
166 return waterBoxCarriageStatus;
169 public final Integer getMopForbiddenEnable() {
170 return mopForbiddenEnable;