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