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