]> git.basschouten.com Git - openhab-addons.git/blob
82e50ce3572ee4cd22dd0a128351a18a9501123f
[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.wlanthermo.internal.api.mini.dto.builtin;
14
15 import com.google.gson.annotations.Expose;
16 import com.google.gson.annotations.SerializedName;
17
18 /**
19  * This DTO is used to parse the JSON
20  * Class is auto-generated from JSON using http://www.jsonschema2pojo.org/
21  *
22  * @author Christian Schlipp - Initial contribution
23  */
24 public class Data {
25
26     @SerializedName("temp")
27     @Expose
28     private Double temp;
29     @SerializedName("color")
30     @Expose
31     private String color;
32     @SerializedName("state")
33     @Expose
34     private String state;
35     @SerializedName("temp_min")
36     @Expose
37     private Double tempMin;
38     @SerializedName("temp_max")
39     @Expose
40     private Double tempMax;
41     @SerializedName("name")
42     @Expose
43     private String name;
44     @SerializedName("alert")
45     @Expose
46     private Boolean alert;
47     @SerializedName("show")
48     @Expose
49     private Boolean show;
50
51     /**
52      * No args constructor for use in serialization
53      * 
54      */
55     public Data() {
56     }
57
58     /**
59      * 
60      * @param tempMax
61      * @param temp
62      * @param color
63      * @param alert
64      * @param name
65      * @param show
66      * @param state
67      * @param tempMin
68      */
69     public Data(Double temp, String color, String state, Double tempMin, Double tempMax, String name, Boolean alert,
70             Boolean show) {
71         super();
72         this.temp = temp;
73         this.color = color;
74         this.state = state;
75         this.tempMin = tempMin;
76         this.tempMax = tempMax;
77         this.name = name;
78         this.alert = alert;
79         this.show = show;
80     }
81
82     public Double getTemp() {
83         return temp;
84     }
85
86     public void setTemp(Double temp) {
87         this.temp = temp;
88     }
89
90     public Data withTemp(Double temp) {
91         this.temp = temp;
92         return this;
93     }
94
95     public String getColor() {
96         return color;
97     }
98
99     public void setColor(String color) {
100         this.color = color;
101     }
102
103     public Data withColor(String color) {
104         this.color = color;
105         return this;
106     }
107
108     public String getState() {
109         return state;
110     }
111
112     public void setState(String state) {
113         this.state = state;
114     }
115
116     public Data withState(String state) {
117         this.state = state;
118         return this;
119     }
120
121     public Double getTempMin() {
122         return tempMin;
123     }
124
125     public void setTempMin(Double tempMin) {
126         this.tempMin = tempMin;
127     }
128
129     public Data withTempMin(Double tempMin) {
130         this.tempMin = tempMin;
131         return this;
132     }
133
134     public Double getTempMax() {
135         return tempMax;
136     }
137
138     public void setTempMax(Double tempMax) {
139         this.tempMax = tempMax;
140     }
141
142     public Data withTempMax(Double tempMax) {
143         this.tempMax = tempMax;
144         return this;
145     }
146
147     public String getName() {
148         return name;
149     }
150
151     public void setName(String name) {
152         this.name = name;
153     }
154
155     public Data withName(String name) {
156         this.name = name;
157         return this;
158     }
159
160     public Boolean getAlert() {
161         return alert;
162     }
163
164     public void setAlert(Boolean alert) {
165         this.alert = alert;
166     }
167
168     public Data withAlert(Boolean alert) {
169         this.alert = alert;
170         return this;
171     }
172
173     public Boolean getShow() {
174         return show;
175     }
176
177     public void setShow(Boolean show) {
178         this.show = show;
179     }
180
181     public Data withShow(Boolean show) {
182         this.show = show;
183         return this;
184     }
185 }