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
27 @SerializedName("time")
30 @SerializedName("unit")
33 @SerializedName("soc")
36 @SerializedName("charge")
38 private Boolean charge;
39 @SerializedName("rssi")
42 @SerializedName("online")
44 private Integer online;
47 * No args constructor for use in serialization
62 public System(String time, String unit, Integer soc, Boolean charge, Integer rssi, Integer online) {
72 public String getTime() {
76 public void setTime(String time) {
80 public System withTime(String time) {
85 public String getUnit() {
89 public void setUnit(String unit) {
93 public System withUnit(String unit) {
98 public Integer getSoc() {
102 public void setSoc(Integer soc) {
106 public System withSoc(Integer soc) {
111 public Boolean getCharge() {
115 public void setCharge(Boolean charge) {
116 this.charge = charge;
119 public System withCharge(Boolean charge) {
120 this.charge = charge;
124 public Integer getRssi() {
128 public void setRssi(Integer rssi) {
132 public System withRssi(Integer rssi) {
137 public Integer getOnline() {
141 public void setOnline(Integer online) {
142 this.online = online;
145 public System withOnline(Integer online) {
146 this.online = online;