]> git.basschouten.com Git - openhab-addons.git/blob
62418e13d9c007da2d6c66236e8310acb0e6ef72
[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 package org.openhab.binding.airvisualnode.internal.json;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * Measurements data.
19  *
20  * @author Victor Antonovich - Initial contribution
21  */
22 public class Measurements {
23
24     private int co2Ppm;
25     @SerializedName("humidity_RH")
26     private int humidityRH;
27     @SerializedName("pm25_AQICN")
28     private int pm25AQICN;
29     @SerializedName("pm25_AQIUS")
30     private int pm25AQIUS;
31     private float pm25Ugm3;
32     @SerializedName("temperature_C")
33     private float temperatureC;
34     @SerializedName("temperature_F")
35     private float temperatureF;
36     private int vocPpb;
37
38     public Measurements(int co2Ppm, int humidityRH, int pm25AQICN, int pm25AQIUS, float pm25Ugm3, float temperatureC,
39             float temperatureF, int vocPpb) {
40         this.co2Ppm = co2Ppm;
41         this.humidityRH = humidityRH;
42         this.pm25AQICN = pm25AQICN;
43         this.pm25AQIUS = pm25AQIUS;
44         this.pm25Ugm3 = pm25Ugm3;
45         this.temperatureC = temperatureC;
46         this.temperatureF = temperatureF;
47         this.vocPpb = vocPpb;
48     }
49
50     public int getCo2Ppm() {
51         return co2Ppm;
52     }
53
54     public void setCo2Ppm(int co2Ppm) {
55         this.co2Ppm = co2Ppm;
56     }
57
58     public int getHumidityRH() {
59         return humidityRH;
60     }
61
62     public void setHumidityRH(int humidityRH) {
63         this.humidityRH = humidityRH;
64     }
65
66     public int getPm25AQICN() {
67         return pm25AQICN;
68     }
69
70     public void setPm25AQICN(int pm25AQICN) {
71         this.pm25AQICN = pm25AQICN;
72     }
73
74     public int getPm25AQIUS() {
75         return pm25AQIUS;
76     }
77
78     public void setPm25AQIUS(int pm25AQIUS) {
79         this.pm25AQIUS = pm25AQIUS;
80     }
81
82     public float getPm25Ugm3() {
83         return pm25Ugm3;
84     }
85
86     public void setPm25Ugm3(float pm25Ugm3) {
87         this.pm25Ugm3 = pm25Ugm3;
88     }
89
90     public float getTemperatureC() {
91         return temperatureC;
92     }
93
94     public void setTemperatureC(float temperatureC) {
95         this.temperatureC = temperatureC;
96     }
97
98     public float getTemperatureF() {
99         return temperatureF;
100     }
101
102     public void setTemperatureF(float temperatureF) {
103         this.temperatureF = temperatureF;
104     }
105
106     public int getVocPpb() {
107         return vocPpb;
108     }
109
110     public void setVocPpb(int vocPpb) {
111         this.vocPpb = vocPpb;
112     }
113 }