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/
21 * Be careful to not overwrite the getState/getTrigger function mapping the Data to OH channels!
23 * @author Christian Schlipp - Initial contribution
27 @SerializedName("temp_unit")
29 private String tempUnit;
30 @SerializedName("pit")
33 @SerializedName("pit2")
36 @SerializedName("cpu_load")
38 private Double cpuLoad;
39 @SerializedName("cpu_temp")
41 private Double cpuTemp;
42 @SerializedName("channel")
44 private Channel channel;
45 @SerializedName("timestamp")
47 private String timestamp;
50 * No args constructor for use in serialization
66 public App(String tempUnit, Pit pit, Pit pit2, Double cpuLoad, Double cpuTemp, Channel channel, String timestamp) {
68 this.tempUnit = tempUnit;
71 this.cpuLoad = cpuLoad;
72 this.cpuTemp = cpuTemp;
73 this.channel = channel;
74 this.timestamp = timestamp;
77 public String getTempUnit() {
81 public void setTempUnit(String tempUnit) {
82 this.tempUnit = tempUnit;
85 public App withTempUnit(String tempUnit) {
86 this.tempUnit = tempUnit;
94 public void setPit(Pit pit) {
98 public App withPit(Pit pit) {
103 public Pit getPit2() {
107 public void setPit2(Pit pit2) {
111 public App withPit2(Pit pit2) {
116 public Double getCpuLoad() {
120 public void setCpuLoad(Double cpuLoad) {
121 this.cpuLoad = cpuLoad;
124 public App withCpuLoad(Double cpuLoad) {
125 this.cpuLoad = cpuLoad;
129 public Double getCpuTemp() {
133 public void setCpuTemp(Double cpuTemp) {
134 this.cpuTemp = cpuTemp;
137 public App withCpuTemp(Double cpuTemp) {
138 this.cpuTemp = cpuTemp;
142 public Channel getChannel() {
146 public void setChannel(Channel channel) {
147 this.channel = channel;
150 public App withChannel(Channel channel) {
151 this.channel = channel;
155 public String getTimestamp() {
159 public void setTimestamp(String timestamp) {
160 this.timestamp = timestamp;
163 public App withTimestamp(String timestamp) {
164 this.timestamp = timestamp;