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