]> git.basschouten.com Git - openhab-addons.git/blob
ed683d555c40c47062598c35c23c9c266869363f
[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 Pit {
25
26     @SerializedName("enabled")
27     @Expose
28     private Boolean enabled;
29     @SerializedName("timestamp")
30     @Expose
31     private String timestamp;
32     @SerializedName("setpoint")
33     @Expose
34     private Double setpoint;
35     @SerializedName("current")
36     @Expose
37     private Double current;
38     @SerializedName("control_out")
39     @Expose
40     private Integer controlOut;
41     @SerializedName("ch")
42     @Expose
43     private Integer ch;
44     @SerializedName("type")
45     @Expose
46     private String type;
47     @SerializedName("open_lid")
48     @Expose
49     private String openLid;
50
51     /**
52      * No args constructor for use in serialization
53      * 
54      */
55     public Pit() {
56     }
57
58     /**
59      * 
60      * @param current
61      * @param setpoint
62      * @param ch
63      * @param openLid
64      * @param controlOut
65      * @param type
66      * @param enabled
67      * @param timestamp
68      */
69     public Pit(Boolean enabled, String timestamp, Double setpoint, Double current, Integer controlOut, Integer ch,
70             String type, String openLid) {
71         super();
72         this.enabled = enabled;
73         this.timestamp = timestamp;
74         this.setpoint = setpoint;
75         this.current = current;
76         this.controlOut = controlOut;
77         this.ch = ch;
78         this.type = type;
79         this.openLid = openLid;
80     }
81
82     public Boolean getEnabled() {
83         return enabled;
84     }
85
86     public void setEnabled(Boolean enabled) {
87         this.enabled = enabled;
88     }
89
90     public Pit withEnabled(Boolean enabled) {
91         this.enabled = enabled;
92         return this;
93     }
94
95     public String getTimestamp() {
96         return timestamp;
97     }
98
99     public void setTimestamp(String timestamp) {
100         this.timestamp = timestamp;
101     }
102
103     public Pit withTimestamp(String timestamp) {
104         this.timestamp = timestamp;
105         return this;
106     }
107
108     public Double getSetpoint() {
109         return setpoint;
110     }
111
112     public void setSetpoint(Double setpoint) {
113         this.setpoint = setpoint;
114     }
115
116     public Pit withSetpoint(Double setpoint) {
117         this.setpoint = setpoint;
118         return this;
119     }
120
121     public Double getCurrent() {
122         return current;
123     }
124
125     public void setCurrent(Double current) {
126         this.current = current;
127     }
128
129     public Pit withCurrent(Double current) {
130         this.current = current;
131         return this;
132     }
133
134     public Integer getControlOut() {
135         return controlOut;
136     }
137
138     public void setControlOut(Integer controlOut) {
139         this.controlOut = controlOut;
140     }
141
142     public Pit withControlOut(Integer controlOut) {
143         this.controlOut = controlOut;
144         return this;
145     }
146
147     public Integer getCh() {
148         return ch;
149     }
150
151     public void setCh(Integer ch) {
152         this.ch = ch;
153     }
154
155     public Pit withCh(Integer ch) {
156         this.ch = ch;
157         return this;
158     }
159
160     public String getType() {
161         return type;
162     }
163
164     public void setType(String type) {
165         this.type = type;
166     }
167
168     public Pit withType(String type) {
169         this.type = type;
170         return this;
171     }
172
173     public String getOpenLid() {
174         return openLid;
175     }
176
177     public void setOpenLid(String openLid) {
178         this.openLid = openLid;
179     }
180
181     public Pit withOpenLid(String openLid) {
182         this.openLid = openLid;
183         return this;
184     }
185 }