]> git.basschouten.com Git - openhab-addons.git/blob
c30b044536b68c8afb5ab9974f4ca37758060b3a
[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 java.math.BigDecimal;
16
17 import com.google.gson.annotations.Expose;
18 import com.google.gson.annotations.SerializedName;
19
20 /**
21  * This DTO class wraps the history record message json structure
22  *
23  * @author Marcel Verpaalen - Initial contribution
24  */
25 public class HistoryRecordDTO {
26
27     @SerializedName("start")
28     @Expose
29     private String start;
30     @SerializedName("end")
31     @Expose
32     private String end;
33     @SerializedName("duration")
34     @Expose
35     private Integer duration;
36     @SerializedName("area")
37     @Expose
38     private BigDecimal area;
39     @SerializedName("clean_time")
40     @Expose
41     private Integer cleanTime;
42     @SerializedName("error")
43     @Expose
44     private Integer error;
45     @SerializedName("finished")
46     @Expose
47     private Integer finished;
48     @SerializedName("start_type")
49     @Expose
50     private Integer startType;
51     @SerializedName("clean_type")
52     @Expose
53     private Integer cleanType;
54     @SerializedName("finish_reason")
55     @Expose
56     private Integer finishReason;
57     @SerializedName("dust_collection_status")
58     @Expose
59     private Integer dustCollectionStatus;
60
61     public final String getStart() {
62         return start;
63     }
64
65     public final void setStart(String start) {
66         this.start = start;
67     }
68
69     public final String getEnd() {
70         return end;
71     }
72
73     public final void setEnd(String end) {
74         this.end = end;
75     }
76
77     public final Integer getDuration() {
78         return duration;
79     }
80
81     public final void setDuration(Integer duration) {
82         this.duration = duration;
83     }
84
85     public final BigDecimal getArea() {
86         return area;
87     }
88
89     public final void setArea(BigDecimal area) {
90         this.area = area;
91     }
92
93     public final Integer getCleanTime() {
94         return cleanTime;
95     }
96
97     public final void setCleanTime(Integer cleanTime) {
98         this.cleanTime = cleanTime;
99     }
100
101     public final Integer getError() {
102         return error;
103     }
104
105     public final void setError(Integer error) {
106         this.error = error;
107     }
108
109     public final Integer getFinished() {
110         return finished;
111     }
112
113     public final void setFinished(Integer finished) {
114         this.finished = finished;
115     }
116
117     public final Integer getStartType() {
118         return startType;
119     }
120
121     public final void setStartType(Integer startType) {
122         this.startType = startType;
123     }
124
125     public final Integer getCleanType() {
126         return cleanType;
127     }
128
129     public final void setCleanType(Integer cleanType) {
130         this.cleanType = cleanType;
131     }
132
133     public final Integer getFinishReason() {
134         return finishReason;
135     }
136
137     public final void setFinishReason(Integer finishReason) {
138         this.finishReason = finishReason;
139     }
140
141     public final Integer getDustCollectionStatus() {
142         return dustCollectionStatus;
143     }
144
145     public final void setDustCollectionStatus(Integer dustCollectionStatus) {
146         this.dustCollectionStatus = dustCollectionStatus;
147     }
148 }