]> git.basschouten.com Git - openhab-addons.git/blob
a3a2d848b5060d8c4d2fe00cf806cc8bf9f2225f
[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 java.util.ArrayList;
16 import java.util.List;
17
18 import com.google.gson.annotations.Expose;
19 import com.google.gson.annotations.SerializedName;
20
21 /**
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!
25  *
26  * @author Christian Schlipp - Initial contribution
27  */
28 public class Data {
29
30     @SerializedName("system")
31     @Expose
32     private System system;
33     @SerializedName("channel")
34     @Expose
35     private List<Channel> channel = new ArrayList<>();
36     @SerializedName("pitmaster")
37     @Expose
38     private Pitmaster pitmaster;
39
40     /**
41      * No args constructor for use in serialization
42      * 
43      */
44     public Data() {
45     }
46
47     public Data(System system, List<Channel> channel, Pitmaster pitmaster) {
48         super();
49         this.system = system;
50         this.channel = channel;
51         this.pitmaster = pitmaster;
52     }
53
54     public System getSystem() {
55         return system;
56     }
57
58     public void setSystem(System system) {
59         this.system = system;
60     }
61
62     public Data withSystem(System system) {
63         this.system = system;
64         return this;
65     }
66
67     public List<Channel> getChannel() {
68         return channel;
69     }
70
71     public void setChannel(List<Channel> channel) {
72         this.channel = channel;
73     }
74
75     public Data withChannel(List<Channel> channel) {
76         this.channel = channel;
77         return this;
78     }
79
80     public Pitmaster getPitmaster() {
81         return pitmaster;
82     }
83
84     public void setPitmaster(Pitmaster pitmaster) {
85         this.pitmaster = pitmaster;
86     }
87
88     public Data withPitmaster(Pitmaster pitmaster) {
89         this.pitmaster = pitmaster;
90         return this;
91     }
92 }