2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.wlanthermo.internal.api.mini.dto.builtin;
15 import com.google.gson.annotations.Expose;
16 import com.google.gson.annotations.SerializedName;
19 * This DTO is used to parse the JSON
20 * Class is auto-generated from JSON using http://www.jsonschema2pojo.org/
22 * @author Christian Schlipp - Initial contribution
26 @SerializedName("enabled")
28 private Boolean enabled;
29 @SerializedName("timestamp")
31 private String timestamp;
32 @SerializedName("setpoint")
34 private Double setpoint;
35 @SerializedName("current")
37 private Double current;
38 @SerializedName("control_out")
40 private Integer controlOut;
44 @SerializedName("type")
47 @SerializedName("open_lid")
49 private String openLid;
52 * No args constructor for use in serialization
69 public Pit(Boolean enabled, String timestamp, Double setpoint, Double current, Integer controlOut, Integer ch,
70 String type, String openLid) {
72 this.enabled = enabled;
73 this.timestamp = timestamp;
74 this.setpoint = setpoint;
75 this.current = current;
76 this.controlOut = controlOut;
79 this.openLid = openLid;
82 public Boolean getEnabled() {
86 public void setEnabled(Boolean enabled) {
87 this.enabled = enabled;
90 public Pit withEnabled(Boolean enabled) {
91 this.enabled = enabled;
95 public String getTimestamp() {
99 public void setTimestamp(String timestamp) {
100 this.timestamp = timestamp;
103 public Pit withTimestamp(String timestamp) {
104 this.timestamp = timestamp;
108 public Double getSetpoint() {
112 public void setSetpoint(Double setpoint) {
113 this.setpoint = setpoint;
116 public Pit withSetpoint(Double setpoint) {
117 this.setpoint = setpoint;
121 public Double getCurrent() {
125 public void setCurrent(Double current) {
126 this.current = current;
129 public Pit withCurrent(Double current) {
130 this.current = current;
134 public Integer getControlOut() {
138 public void setControlOut(Integer controlOut) {
139 this.controlOut = controlOut;
142 public Pit withControlOut(Integer controlOut) {
143 this.controlOut = controlOut;
147 public Integer getCh() {
151 public void setCh(Integer ch) {
155 public Pit withCh(Integer ch) {
160 public String getType() {
164 public void setType(String type) {
168 public Pit withType(String type) {
173 public String getOpenLid() {
177 public void setOpenLid(String openLid) {
178 this.openLid = openLid;
181 public Pit withOpenLid(String openLid) {
182 this.openLid = openLid;