]> git.basschouten.com Git - openhab-addons.git/blob
6537cf34e879a3cf660d4925a89cd5af437220a7
[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 Pm {
26
27     @SerializedName("id")
28     @Expose
29     private Integer id;
30     @SerializedName("channel")
31     @Expose
32     private Integer channel;
33     @SerializedName("pid")
34     @Expose
35     private Integer pid;
36     @SerializedName("value")
37     @Expose
38     private Integer value;
39     @SerializedName("set")
40     @Expose
41     private Double set;
42     @SerializedName("typ")
43     @Expose
44     private String typ;
45     @SerializedName("set_color")
46     @Expose
47     private String setColor;
48     @SerializedName("value_color")
49     @Expose
50     private String valueColor;
51
52     /**
53      * No args constructor for use in serialization
54      * 
55      */
56     public Pm() {
57     }
58
59     /**
60      * 
61      * @param set
62      * @param setColor
63      * @param channel
64      * @param pid
65      * @param typ
66      * @param id
67      * @param value
68      * @param valueColor
69      */
70     public Pm(Integer id, Integer channel, Integer pid, Integer value, Double set, String typ, String setColor,
71             String valueColor) {
72         super();
73         this.id = id;
74         this.channel = channel;
75         this.pid = pid;
76         this.value = value;
77         this.set = set;
78         this.typ = typ;
79         this.setColor = setColor;
80         this.valueColor = valueColor;
81     }
82
83     public Integer getId() {
84         return id;
85     }
86
87     public void setId(Integer id) {
88         this.id = id;
89     }
90
91     public Pm withId(Integer id) {
92         this.id = id;
93         return this;
94     }
95
96     public Integer getChannel() {
97         return channel;
98     }
99
100     public void setChannel(Integer channel) {
101         this.channel = channel;
102     }
103
104     public Pm withChannel(Integer channel) {
105         this.channel = channel;
106         return this;
107     }
108
109     public Integer getPid() {
110         return pid;
111     }
112
113     public void setPid(Integer pid) {
114         this.pid = pid;
115     }
116
117     public Pm withPid(Integer pid) {
118         this.pid = pid;
119         return this;
120     }
121
122     public Integer getValue() {
123         return value;
124     }
125
126     public void setValue(Integer value) {
127         this.value = value;
128     }
129
130     public Pm withValue(Integer value) {
131         this.value = value;
132         return this;
133     }
134
135     public Double getSet() {
136         return set;
137     }
138
139     public void setSet(Double set) {
140         this.set = set;
141     }
142
143     public Pm withSet(Double set) {
144         this.set = set;
145         return this;
146     }
147
148     public String getTyp() {
149         return typ;
150     }
151
152     public void setTyp(String typ) {
153         this.typ = typ;
154     }
155
156     public Pm withTyp(String typ) {
157         this.typ = typ;
158         return this;
159     }
160
161     public String getSetColor() {
162         return setColor;
163     }
164
165     public void setSetColor(String setColor) {
166         this.setColor = setColor;
167     }
168
169     public Pm withSetColor(String setColor) {
170         this.setColor = setColor;
171         return this;
172     }
173
174     public String getValueColor() {
175         return valueColor;
176     }
177
178     public void setValueColor(String valueColor) {
179         this.valueColor = valueColor;
180     }
181
182     public Pm withValueColor(String valueColor) {
183         this.valueColor = valueColor;
184         return this;
185     }
186 }