]> git.basschouten.com Git - openhab-addons.git/blob
6f67bc40ff3fe4b98396a9033b289679bd847805
[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.sensebox.internal.dto;
14
15 import java.util.List;
16
17 import org.openhab.core.thing.ThingStatus;
18
19 import com.google.gson.annotations.Expose;
20 import com.google.gson.annotations.SerializedName;
21
22 /**
23  * The {@link SenseBoxData} holds a de-serialized representation
24  * of the API response and the data therein...
25  *
26  * @author Hakan Tandogan - Initial contribution
27  */
28 public class SenseBoxData {
29
30     @SerializedName("_id")
31     private String id;
32
33     @SerializedName("name")
34     private String name;
35
36     @SerializedName("exposure")
37     private String exposure;
38
39     @SerializedName("image")
40     private String image;
41
42     @SerializedName("loc")
43     private List<SenseBoxLoc> locs;
44
45     @SerializedName("sensors")
46     private List<SenseBoxSensor> sensors;
47
48     @Expose(deserialize = false)
49     private ThingStatus status;
50
51     @Expose(deserialize = false)
52     private SenseBoxDescriptor descriptor;
53
54     @Expose(deserialize = false)
55     private SenseBoxLocation location;
56
57     @Expose(deserialize = false)
58     private SenseBoxSensor uvIntensity;
59
60     @Expose(deserialize = false)
61     private SenseBoxSensor luminance;
62
63     @Expose(deserialize = false)
64     private SenseBoxSensor pressure;
65
66     @Expose(deserialize = false)
67     private SenseBoxSensor humidity;
68
69     @Expose(deserialize = false)
70     private SenseBoxSensor temperature;
71
72     @Expose(deserialize = false)
73     private SenseBoxSensor particulateMatter2dot5;
74
75     @Expose(deserialize = false)
76     private SenseBoxSensor particulateMatter10;
77
78     public String getId() {
79         return id;
80     }
81
82     public void setId(String id) {
83         this.id = id;
84     }
85
86     public String getName() {
87         return name;
88     }
89
90     public void setName(String name) {
91         this.name = name;
92     }
93
94     public String getExposure() {
95         return exposure;
96     }
97
98     public void setExposure(String exposure) {
99         this.exposure = exposure;
100     }
101
102     public String getImage() {
103         return image;
104     }
105
106     public void setImage(String image) {
107         this.image = image;
108     }
109
110     public SenseBoxDescriptor getDescriptor() {
111         return descriptor;
112     }
113
114     public void setDescriptor(SenseBoxDescriptor descriptor) {
115         this.descriptor = descriptor;
116     }
117
118     public SenseBoxLocation getLocation() {
119         return location;
120     }
121
122     public void setLocation(SenseBoxLocation location) {
123         this.location = location;
124     }
125
126     public List<SenseBoxLoc> getLocs() {
127         return locs;
128     }
129
130     public void setLocs(List<SenseBoxLoc> locs) {
131         this.locs = locs;
132     }
133
134     public List<SenseBoxSensor> getSensors() {
135         return sensors;
136     }
137
138     public void setSensors(List<SenseBoxSensor> sensors) {
139         this.sensors = sensors;
140     }
141
142     public ThingStatus getStatus() {
143         return status;
144     }
145
146     public void setStatus(ThingStatus status) {
147         this.status = status;
148     }
149
150     public SenseBoxSensor getUvIntensity() {
151         return uvIntensity;
152     }
153
154     public void setUvIntensity(SenseBoxSensor uvIntensity) {
155         this.uvIntensity = uvIntensity;
156     }
157
158     public SenseBoxSensor getLuminance() {
159         return luminance;
160     }
161
162     public void setLuminance(SenseBoxSensor luminance) {
163         this.luminance = luminance;
164     }
165
166     public SenseBoxSensor getPressure() {
167         return pressure;
168     }
169
170     public void setPressure(SenseBoxSensor pressure) {
171         this.pressure = pressure;
172     }
173
174     public SenseBoxSensor getHumidity() {
175         return humidity;
176     }
177
178     public void setHumidity(SenseBoxSensor humidity) {
179         this.humidity = humidity;
180     }
181
182     public SenseBoxSensor getTemperature() {
183         return temperature;
184     }
185
186     public void setTemperature(SenseBoxSensor temperature) {
187         this.temperature = temperature;
188     }
189
190     public SenseBoxSensor getParticulateMatter2dot5() {
191         return particulateMatter2dot5;
192     }
193
194     public void setParticulateMatter2dot5(SenseBoxSensor particulateMatter2dot5) {
195         this.particulateMatter2dot5 = particulateMatter2dot5;
196     }
197
198     public SenseBoxSensor getParticulateMatter10() {
199         return particulateMatter10;
200     }
201
202     public void setParticulateMatter10(SenseBoxSensor particulateMatter10) {
203         this.particulateMatter10 = particulateMatter10;
204     }
205 }