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