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