]> git.basschouten.com Git - openhab-addons.git/blob
d7e4d422de04d0c0db44883e9c0b8f04e21e0801
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.json.airvisualpro;
14
15 import org.openhab.binding.airvisualnode.internal.json.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
58         this.co2Ppm = co2Ppm;
59         this.humidityRH = humidityRH;
60         this.pm25AQICN = pm25AQICN;
61         this.pm25AQIUS = pm25AQIUS;
62         this.pm01Ugm3 = pm01Ugm3;
63         this.pm10Ugm3 = pm10Ugm3;
64         this.pm25Ugm3 = pm25Ugm3;
65         this.temperatureC = temperatureC;
66         this.temperatureF = temperatureF;
67         this.vocPpb = vocPpb;
68     }
69
70     public int getCo2Ppm() {
71         return co2Ppm;
72     }
73
74     public void setCo2Ppm(int co2Ppm) {
75         this.co2Ppm = co2Ppm;
76     }
77
78     public int getHumidityRH() {
79         return humidityRH;
80     }
81
82     public void setHumidityRH(int humidityRH) {
83         this.humidityRH = humidityRH;
84     }
85
86     public int getPm25AQICN() {
87         return pm25AQICN;
88     }
89
90     public void setPm25AQICN(int pm25AQICN) {
91         this.pm25AQICN = pm25AQICN;
92     }
93
94     public int getPm25AQIUS() {
95         return pm25AQIUS;
96     }
97
98     public void setPm25AQIUS(int pm25AQIUS) {
99         this.pm25AQIUS = pm25AQIUS;
100     }
101
102     public float getPm01Ugm3() {
103         return pm01Ugm3;
104     }
105
106     public void setPm01Ugm3(float pm01Ugm3) {
107         this.pm01Ugm3 = pm01Ugm3;
108     }
109
110     public float getPm10Ugm3() {
111         return pm10Ugm3;
112     }
113
114     public void setPm10Ugm3(float pm10Ugm3) {
115         this.pm10Ugm3 = pm10Ugm3;
116     }
117
118     public float getPm25Ugm3() {
119         return pm25Ugm3;
120     }
121
122     public void setPm25Ugm3(float pm25Ugm3) {
123         this.pm25Ugm3 = pm25Ugm3;
124     }
125
126     public float getTemperatureC() {
127         return temperatureC;
128     }
129
130     public void setTemperatureC(float temperatureC) {
131         this.temperatureC = temperatureC;
132     }
133
134     public float getTemperatureF() {
135         return temperatureF;
136     }
137
138     public void setTemperatureF(float temperatureF) {
139         this.temperatureF = temperatureF;
140     }
141
142     public int getVocPpb() {
143         return vocPpb;
144     }
145
146     public void setVocPpb(int vocPpb) {
147         this.vocPpb = vocPpb;
148     }
149 }