]> git.basschouten.com Git - openhab-addons.git/blob
d2aa19b48ebffa6e94ce0845857b12c8f269da64
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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
14 package org.openhab.binding.wlanthermo.internal.api.nano.data;
15
16 import com.google.gson.annotations.Expose;
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * This DTO is used to parse the JSON
21  * Class is auto-generated from JSON using http://www.jsonschema2pojo.org/
22  *
23  * @author Christian Schlipp - Initial contribution
24  */
25 public class System {
26
27     @SerializedName("time")
28     @Expose
29     private String time;
30     @SerializedName("unit")
31     @Expose
32     private String unit;
33     @SerializedName("soc")
34     @Expose
35     private Integer soc;
36     @SerializedName("charge")
37     @Expose
38     private Boolean charge;
39     @SerializedName("rssi")
40     @Expose
41     private Integer rssi;
42     @SerializedName("online")
43     @Expose
44     private Integer online;
45
46     /**
47      * No args constructor for use in serialization
48      * 
49      */
50     public System() {
51     }
52
53     /**
54      * 
55      * @param unit
56      * @param rssi
57      * @param charge
58      * @param soc
59      * @param online
60      * @param time
61      */
62     public System(String time, String unit, Integer soc, Boolean charge, Integer rssi, Integer online) {
63         super();
64         this.time = time;
65         this.unit = unit;
66         this.soc = soc;
67         this.charge = charge;
68         this.rssi = rssi;
69         this.online = online;
70     }
71
72     public String getTime() {
73         return time;
74     }
75
76     public void setTime(String time) {
77         this.time = time;
78     }
79
80     public System withTime(String time) {
81         this.time = time;
82         return this;
83     }
84
85     public String getUnit() {
86         return unit;
87     }
88
89     public void setUnit(String unit) {
90         this.unit = unit;
91     }
92
93     public System withUnit(String unit) {
94         this.unit = unit;
95         return this;
96     }
97
98     public Integer getSoc() {
99         return soc;
100     }
101
102     public void setSoc(Integer soc) {
103         this.soc = soc;
104     }
105
106     public System withSoc(Integer soc) {
107         this.soc = soc;
108         return this;
109     }
110
111     public Boolean getCharge() {
112         return charge;
113     }
114
115     public void setCharge(Boolean charge) {
116         this.charge = charge;
117     }
118
119     public System withCharge(Boolean charge) {
120         this.charge = charge;
121         return this;
122     }
123
124     public Integer getRssi() {
125         return rssi;
126     }
127
128     public void setRssi(Integer rssi) {
129         this.rssi = rssi;
130     }
131
132     public System withRssi(Integer rssi) {
133         this.rssi = rssi;
134         return this;
135     }
136
137     public Integer getOnline() {
138         return online;
139     }
140
141     public void setOnline(Integer online) {
142         this.online = online;
143     }
144
145     public System withOnline(Integer online) {
146         this.online = online;
147         return this;
148     }
149 }