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