2 * Copyright (c) 2010-2020 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
14 package org.openhab.binding.wlanthermo.internal.api.nano.data;
16 import com.google.gson.annotations.Expose;
17 import com.google.gson.annotations.SerializedName;
20 * This DTO is used to parse the JSON
21 * Class is auto-generated from JSON using http://www.jsonschema2pojo.org/
23 * @author Christian Schlipp - Initial contribution
30 @SerializedName("channel")
32 private Integer channel;
33 @SerializedName("pid")
36 @SerializedName("value")
38 private Integer value;
39 @SerializedName("set")
42 @SerializedName("typ")
45 @SerializedName("set_color")
47 private String setColor;
48 @SerializedName("value_color")
50 private String valueColor;
53 * No args constructor for use in serialization
70 public Pm(Integer id, Integer channel, Integer pid, Integer value, Double set, String typ, String setColor,
74 this.channel = channel;
79 this.setColor = setColor;
80 this.valueColor = valueColor;
83 public Integer getId() {
87 public void setId(Integer id) {
91 public Pm withId(Integer id) {
96 public Integer getChannel() {
100 public void setChannel(Integer channel) {
101 this.channel = channel;
104 public Pm withChannel(Integer channel) {
105 this.channel = channel;
109 public Integer getPid() {
113 public void setPid(Integer pid) {
117 public Pm withPid(Integer pid) {
122 public Integer getValue() {
126 public void setValue(Integer value) {
130 public Pm withValue(Integer value) {
135 public Double getSet() {
139 public void setSet(Double set) {
143 public Pm withSet(Double set) {
148 public String getTyp() {
152 public void setTyp(String typ) {
156 public Pm withTyp(String typ) {
161 public String getSetColor() {
165 public void setSetColor(String setColor) {
166 this.setColor = setColor;
169 public Pm withSetColor(String setColor) {
170 this.setColor = setColor;
174 public String getValueColor() {
178 public void setValueColor(String valueColor) {
179 this.valueColor = valueColor;
182 public Pm withValueColor(String valueColor) {
183 this.valueColor = valueColor;