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 java.math.BigDecimal;
17 import com.google.gson.annotations.Expose;
18 import com.google.gson.annotations.SerializedName;
21 * This DTO class wraps the history record message json structure
23 * @author Marcel Verpaalen - Initial contribution
25 public class HistoryRecordDTO {
27 @SerializedName("start")
30 @SerializedName("end")
33 @SerializedName("duration")
35 private Integer duration;
36 @SerializedName("area")
38 private BigDecimal area;
39 @SerializedName("clean_time")
41 private Integer cleanTime;
42 @SerializedName("error")
44 private Integer error;
45 @SerializedName("finished")
47 private Integer finished;
48 @SerializedName("start_type")
50 private Integer startType;
51 @SerializedName("clean_type")
53 private Integer cleanType;
54 @SerializedName("finish_reason")
56 private Integer finishReason;
57 @SerializedName("dust_collection_status")
59 private Integer dustCollectionStatus;
61 public final String getStart() {
65 public final void setStart(String start) {
69 public final String getEnd() {
73 public final void setEnd(String end) {
77 public final Integer getDuration() {
81 public final void setDuration(Integer duration) {
82 this.duration = duration;
85 public final BigDecimal getArea() {
89 public final void setArea(BigDecimal area) {
93 public final Integer getCleanTime() {
97 public final void setCleanTime(Integer cleanTime) {
98 this.cleanTime = cleanTime;
101 public final Integer getError() {
105 public final void setError(Integer error) {
109 public final Integer getFinished() {
113 public final void setFinished(Integer finished) {
114 this.finished = finished;
117 public final Integer getStartType() {
121 public final void setStartType(Integer startType) {
122 this.startType = startType;
125 public final Integer getCleanType() {
129 public final void setCleanType(Integer cleanType) {
130 this.cleanType = cleanType;
133 public final Integer getFinishReason() {
137 public final void setFinishReason(Integer finishReason) {
138 this.finishReason = finishReason;
141 public final Integer getDustCollectionStatus() {
142 return dustCollectionStatus;
145 public final void setDustCollectionStatus(Integer dustCollectionStatus) {
146 this.dustCollectionStatus = dustCollectionStatus;