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 java.util.ArrayList;
17 import java.util.List;
19 import com.google.gson.annotations.Expose;
20 import com.google.gson.annotations.SerializedName;
23 * This DTO is used to parse the JSON
24 * Class is auto-generated from JSON using http://www.jsonschema2pojo.org/
25 * Be careful to not overwrite the setState/getState/getTrigger function mapping the Data to OH channels!
27 * @author Christian Schlipp - Initial contribution
31 @SerializedName("system")
33 private System system;
34 @SerializedName("channel")
36 private List<Channel> channel = new ArrayList<>();
37 @SerializedName("pitmaster")
39 private Pitmaster pitmaster;
42 * No args constructor for use in serialization
48 public Data(System system, List<Channel> channel, Pitmaster pitmaster) {
51 this.channel = channel;
52 this.pitmaster = pitmaster;
55 public System getSystem() {
59 public void setSystem(System system) {
63 public Data withSystem(System system) {
68 public List<Channel> getChannel() {
72 public void setChannel(List<Channel> channel) {
73 this.channel = channel;
76 public Data withChannel(List<Channel> channel) {
77 this.channel = channel;
81 public Pitmaster getPitmaster() {
85 public void setPitmaster(Pitmaster pitmaster) {
86 this.pitmaster = pitmaster;
89 public Data withPitmaster(Pitmaster pitmaster) {
90 this.pitmaster = pitmaster;