]> git.basschouten.com Git - openhab-addons.git/blob
b0f617e5cd5521049be055b76590b7b4250d034f
[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  * Be careful to not overwrite the getState/getTrigger function mapping the Data to OH channels!
22  *
23  * @author Christian Schlipp - Initial contribution
24  */
25 public class App {
26
27     @SerializedName("temp_unit")
28     @Expose
29     private String tempUnit;
30     @SerializedName("pit")
31     @Expose
32     private Pit pit;
33     @SerializedName("pit2")
34     @Expose
35     private Pit pit2;
36     @SerializedName("cpu_load")
37     @Expose
38     private Double cpuLoad;
39     @SerializedName("cpu_temp")
40     @Expose
41     private Double cpuTemp;
42     @SerializedName("channel")
43     @Expose
44     private Channel channel;
45     @SerializedName("timestamp")
46     @Expose
47     private String timestamp;
48
49     /**
50      * No args constructor for use in serialization
51      * 
52      */
53     public App() {
54     }
55
56     /**
57      * 
58      * @param cpuLoad
59      * @param pit2
60      * @param tempUnit
61      * @param channel
62      * @param pit
63      * @param cpuTemp
64      * @param timestamp
65      */
66     public App(String tempUnit, Pit pit, Pit pit2, Double cpuLoad, Double cpuTemp, Channel channel, String timestamp) {
67         super();
68         this.tempUnit = tempUnit;
69         this.pit = pit;
70         this.pit2 = pit2;
71         this.cpuLoad = cpuLoad;
72         this.cpuTemp = cpuTemp;
73         this.channel = channel;
74         this.timestamp = timestamp;
75     }
76
77     public String getTempUnit() {
78         return tempUnit;
79     }
80
81     public void setTempUnit(String tempUnit) {
82         this.tempUnit = tempUnit;
83     }
84
85     public App withTempUnit(String tempUnit) {
86         this.tempUnit = tempUnit;
87         return this;
88     }
89
90     public Pit getPit() {
91         return pit;
92     }
93
94     public void setPit(Pit pit) {
95         this.pit = pit;
96     }
97
98     public App withPit(Pit pit) {
99         this.pit = pit;
100         return this;
101     }
102
103     public Pit getPit2() {
104         return pit2;
105     }
106
107     public void setPit2(Pit pit2) {
108         this.pit2 = pit2;
109     }
110
111     public App withPit2(Pit pit2) {
112         this.pit2 = pit2;
113         return this;
114     }
115
116     public Double getCpuLoad() {
117         return cpuLoad;
118     }
119
120     public void setCpuLoad(Double cpuLoad) {
121         this.cpuLoad = cpuLoad;
122     }
123
124     public App withCpuLoad(Double cpuLoad) {
125         this.cpuLoad = cpuLoad;
126         return this;
127     }
128
129     public Double getCpuTemp() {
130         return cpuTemp;
131     }
132
133     public void setCpuTemp(Double cpuTemp) {
134         this.cpuTemp = cpuTemp;
135     }
136
137     public App withCpuTemp(Double cpuTemp) {
138         this.cpuTemp = cpuTemp;
139         return this;
140     }
141
142     public Channel getChannel() {
143         return channel;
144     }
145
146     public void setChannel(Channel channel) {
147         this.channel = channel;
148     }
149
150     public App withChannel(Channel channel) {
151         this.channel = channel;
152         return this;
153     }
154
155     public String getTimestamp() {
156         return timestamp;
157     }
158
159     public void setTimestamp(String timestamp) {
160         this.timestamp = timestamp;
161     }
162
163     public App withTimestamp(String timestamp) {
164         this.timestamp = timestamp;
165         return this;
166     }
167 }