2 * Copyright (c) 2010-2023 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
13 package org.openhab.binding.wlanthermo.internal.api.nano.dto.data;
15 import java.util.ArrayList;
16 import java.util.List;
18 import com.google.gson.annotations.Expose;
19 import com.google.gson.annotations.SerializedName;
22 * This DTO is used to parse the JSON
23 * Class is auto-generated from JSON using http://www.jsonschema2pojo.org/
24 * Be careful to not overwrite the setState/getState/getTrigger function mapping the Data to OH channels!
26 * @author Christian Schlipp - Initial contribution
30 @SerializedName("system")
32 private System system;
33 @SerializedName("channel")
35 private List<Channel> channel = new ArrayList<>();
36 @SerializedName("pitmaster")
38 private Pitmaster pitmaster;
41 * No args constructor for use in serialization
47 public Data(System system, List<Channel> channel, Pitmaster pitmaster) {
50 this.channel = channel;
51 this.pitmaster = pitmaster;
54 public System getSystem() {
58 public void setSystem(System system) {
62 public Data withSystem(System system) {
67 public List<Channel> getChannel() {
71 public void setChannel(List<Channel> channel) {
72 this.channel = channel;
75 public Data withChannel(List<Channel> channel) {
76 this.channel = channel;
80 public Pitmaster getPitmaster() {
84 public void setPitmaster(Pitmaster pitmaster) {
85 this.pitmaster = pitmaster;
88 public Data withPitmaster(Pitmaster pitmaster) {
89 this.pitmaster = pitmaster;