]> git.basschouten.com Git - openhab-addons.git/blob
ffcfe87a11d87bfd41ab96946f23af50809bd3fc
[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.airvisualnode.internal.dto.airvisualpro;
14
15 import org.openhab.binding.airvisualnode.internal.dto.MeasurementsInterface;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Measurements data.
21  *
22  * @author Victor Antonovich - Initial contribution
23  */
24 public class Measurements implements MeasurementsInterface {
25
26     @SerializedName("co2_ppm")
27     private int co2Ppm;
28
29     @SerializedName("humidity_RH")
30     private int humidityRH;
31
32     @SerializedName("pm25_AQICN")
33     private int pm25AQICN;
34
35     @SerializedName("pm25_AQIUS")
36     private int pm25AQIUS;
37
38     @SerializedName("pm01_ugm3")
39     private float pm01Ugm3;
40
41     @SerializedName("pm25_ugm3")
42     private float pm25Ugm3;
43
44     @SerializedName("pm10_ugm3")
45     private float pm10Ugm3;
46
47     @SerializedName("temperature_C")
48     private float temperatureC;
49
50     @SerializedName("temperature_F")
51     private float temperatureF;
52
53     private int vocPpb;
54
55     public Measurements(int co2Ppm, int humidityRH, int pm25AQICN, int pm25AQIUS, float pm01Ugm3, float pm10Ugm3,
56             float pm25Ugm3, float temperatureC, float temperatureF, int vocPpb) {
57         this.co2Ppm = co2Ppm;
58         this.humidityRH = humidityRH;
59         this.pm25AQICN = pm25AQICN;
60         this.pm25AQIUS = pm25AQIUS;
61         this.pm01Ugm3 = pm01Ugm3;
62         this.pm10Ugm3 = pm10Ugm3;
63         this.pm25Ugm3 = pm25Ugm3;
64         this.temperatureC = temperatureC;
65         this.temperatureF = temperatureF;
66         this.vocPpb = vocPpb;
67     }
68
69     @Override
70     public int getCo2Ppm() {
71         return co2Ppm;
72     }
73
74     public void setCo2Ppm(int co2Ppm) {
75         this.co2Ppm = co2Ppm;
76     }
77
78     @Override
79     public int getHumidityRH() {
80         return humidityRH;
81     }
82
83     public void setHumidityRH(int humidityRH) {
84         this.humidityRH = humidityRH;
85     }
86
87     @Override
88     public int getPm25AQICN() {
89         return pm25AQICN;
90     }
91
92     public void setPm25AQICN(int pm25AQICN) {
93         this.pm25AQICN = pm25AQICN;
94     }
95
96     @Override
97     public int getPm25AQIUS() {
98         return pm25AQIUS;
99     }
100
101     public void setPm25AQIUS(int pm25AQIUS) {
102         this.pm25AQIUS = pm25AQIUS;
103     }
104
105     @Override
106     public float getPm01Ugm3() {
107         return pm01Ugm3;
108     }
109
110     public void setPm01Ugm3(float pm01Ugm3) {
111         this.pm01Ugm3 = pm01Ugm3;
112     }
113
114     @Override
115     public float getPm10Ugm3() {
116         return pm10Ugm3;
117     }
118
119     public void setPm10Ugm3(float pm10Ugm3) {
120         this.pm10Ugm3 = pm10Ugm3;
121     }
122
123     @Override
124     public float getPm25Ugm3() {
125         return pm25Ugm3;
126     }
127
128     public void setPm25Ugm3(float pm25Ugm3) {
129         this.pm25Ugm3 = pm25Ugm3;
130     }
131
132     @Override
133     public float getTemperatureC() {
134         return temperatureC;
135     }
136
137     public void setTemperatureC(float temperatureC) {
138         this.temperatureC = temperatureC;
139     }
140
141     @Override
142     public float getTemperatureF() {
143         return temperatureF;
144     }
145
146     public void setTemperatureF(float temperatureF) {
147         this.temperatureF = temperatureF;
148     }
149
150     @Override
151     public int getVocPpb() {
152         return vocPpb;
153     }
154
155     public void setVocPpb(int vocPpb) {
156         this.vocPpb = vocPpb;
157     }
158 }