]> git.basschouten.com Git - openhab-addons.git/blob
cbdcb73ae09a9c91042c0bffec8fb44d4d726018
[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.airvisual;
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     private int co2Ppm;
27     @SerializedName("humidity_RH")
28     private int humidityRH;
29     @SerializedName("pm25_AQICN")
30     private int pm25AQICN;
31     @SerializedName("pm25_AQIUS")
32     private int pm25AQIUS;
33     private float pm25Ugm3;
34     @SerializedName("temperature_C")
35     private float temperatureC;
36     @SerializedName("temperature_F")
37     private float temperatureF;
38     private int vocPpb;
39
40     public Measurements(int co2Ppm, int humidityRH, int pm25AQICN, int pm25AQIUS, float pm25Ugm3, float temperatureC,
41             float temperatureF, int vocPpb) {
42         this.co2Ppm = co2Ppm;
43         this.humidityRH = humidityRH;
44         this.pm25AQICN = pm25AQICN;
45         this.pm25AQIUS = pm25AQIUS;
46         this.pm25Ugm3 = pm25Ugm3;
47         this.temperatureC = temperatureC;
48         this.temperatureF = temperatureF;
49         this.vocPpb = vocPpb;
50     }
51
52     public int getCo2Ppm() {
53         return co2Ppm;
54     }
55
56     public void setCo2Ppm(int co2Ppm) {
57         this.co2Ppm = co2Ppm;
58     }
59
60     public int getHumidityRH() {
61         return humidityRH;
62     }
63
64     public void setHumidityRH(int humidityRH) {
65         this.humidityRH = humidityRH;
66     }
67
68     public int getPm25AQICN() {
69         return pm25AQICN;
70     }
71
72     public void setPm25AQICN(int pm25AQICN) {
73         this.pm25AQICN = pm25AQICN;
74     }
75
76     public int getPm25AQIUS() {
77         return pm25AQIUS;
78     }
79
80     public void setPm25AQIUS(int pm25AQIUS) {
81         this.pm25AQIUS = pm25AQIUS;
82     }
83
84     @Override
85     public float getPm01Ugm3() {
86         return 0;
87     }
88
89     @Override
90     public float getPm10Ugm3() {
91         return 0;
92     }
93
94     public float getPm25Ugm3() {
95         return pm25Ugm3;
96     }
97
98     public void setPm25Ugm3(float pm25Ugm3) {
99         this.pm25Ugm3 = pm25Ugm3;
100     }
101
102     public float getTemperatureC() {
103         return temperatureC;
104     }
105
106     public void setTemperatureC(float temperatureC) {
107         this.temperatureC = temperatureC;
108     }
109
110     public float getTemperatureF() {
111         return temperatureF;
112     }
113
114     public void setTemperatureF(float temperatureF) {
115         this.temperatureF = temperatureF;
116     }
117
118     public int getVocPpb() {
119         return vocPpb;
120     }
121
122     public void setVocPpb(int vocPpb) {
123         this.vocPpb = vocPpb;
124     }
125 }