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.sensebox.internal.dto;
15 import java.util.List;
17 import org.openhab.core.thing.ThingStatus;
19 import com.google.gson.annotations.Expose;
20 import com.google.gson.annotations.SerializedName;
23 * The {@link SenseBoxData} holds a de-serialized representation
24 * of the API response and the data therein...
26 * @author Hakan Tandogan - Initial contribution
28 public class SenseBoxData {
30 @SerializedName("_id")
33 @SerializedName("name")
36 @SerializedName("exposure")
37 private String exposure;
39 @SerializedName("image")
42 @SerializedName("loc")
43 private List<SenseBoxLoc> locs;
45 @SerializedName("sensors")
46 private List<SenseBoxSensor> sensors;
48 @Expose(deserialize = false)
49 private ThingStatus status;
51 @Expose(deserialize = false)
52 private SenseBoxDescriptor descriptor;
54 @Expose(deserialize = false)
55 private SenseBoxLocation location;
57 @Expose(deserialize = false)
58 private SenseBoxSensor uvIntensity;
60 @Expose(deserialize = false)
61 private SenseBoxSensor luminance;
63 @Expose(deserialize = false)
64 private SenseBoxSensor pressure;
66 @Expose(deserialize = false)
67 private SenseBoxSensor humidity;
69 @Expose(deserialize = false)
70 private SenseBoxSensor temperature;
72 @Expose(deserialize = false)
73 private SenseBoxSensor particulateMatter2dot5;
75 @Expose(deserialize = false)
76 private SenseBoxSensor particulateMatter10;
78 public String getId() {
82 public void setId(String id) {
86 public String getName() {
90 public void setName(String name) {
94 public String getExposure() {
98 public void setExposure(String exposure) {
99 this.exposure = exposure;
102 public String getImage() {
106 public void setImage(String image) {
110 public SenseBoxDescriptor getDescriptor() {
114 public void setDescriptor(SenseBoxDescriptor descriptor) {
115 this.descriptor = descriptor;
118 public SenseBoxLocation getLocation() {
122 public void setLocation(SenseBoxLocation location) {
123 this.location = location;
126 public List<SenseBoxLoc> getLocs() {
130 public void setLocs(List<SenseBoxLoc> locs) {
134 public List<SenseBoxSensor> getSensors() {
138 public void setSensors(List<SenseBoxSensor> sensors) {
139 this.sensors = sensors;
142 public ThingStatus getStatus() {
146 public void setStatus(ThingStatus status) {
147 this.status = status;
150 public SenseBoxSensor getUvIntensity() {
154 public void setUvIntensity(SenseBoxSensor uvIntensity) {
155 this.uvIntensity = uvIntensity;
158 public SenseBoxSensor getLuminance() {
162 public void setLuminance(SenseBoxSensor luminance) {
163 this.luminance = luminance;
166 public SenseBoxSensor getPressure() {
170 public void setPressure(SenseBoxSensor pressure) {
171 this.pressure = pressure;
174 public SenseBoxSensor getHumidity() {
178 public void setHumidity(SenseBoxSensor humidity) {
179 this.humidity = humidity;
182 public SenseBoxSensor getTemperature() {
186 public void setTemperature(SenseBoxSensor temperature) {
187 this.temperature = temperature;
190 public SenseBoxSensor getParticulateMatter2dot5() {
191 return particulateMatter2dot5;
194 public void setParticulateMatter2dot5(SenseBoxSensor particulateMatter2dot5) {
195 this.particulateMatter2dot5 = particulateMatter2dot5;
198 public SenseBoxSensor getParticulateMatter10() {
199 return particulateMatter10;
202 public void setParticulateMatter10(SenseBoxSensor particulateMatter10) {
203 this.particulateMatter10 = particulateMatter10;