2 * Copyright (c) 2010-2020 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.airvisualnode.internal.json;
15 import com.google.gson.annotations.SerializedName;
20 * @author Victor Antonovich - Initial contribution
22 public class Measurements {
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;
38 public Measurements(int co2Ppm, int humidityRH, int pm25AQICN, int pm25AQIUS, float pm25Ugm3, float temperatureC,
39 float temperatureF, int vocPpb) {
41 this.humidityRH = humidityRH;
42 this.pm25AQICN = pm25AQICN;
43 this.pm25AQIUS = pm25AQIUS;
44 this.pm25Ugm3 = pm25Ugm3;
45 this.temperatureC = temperatureC;
46 this.temperatureF = temperatureF;
50 public int getCo2Ppm() {
54 public void setCo2Ppm(int co2Ppm) {
58 public int getHumidityRH() {
62 public void setHumidityRH(int humidityRH) {
63 this.humidityRH = humidityRH;
66 public int getPm25AQICN() {
70 public void setPm25AQICN(int pm25AQICN) {
71 this.pm25AQICN = pm25AQICN;
74 public int getPm25AQIUS() {
78 public void setPm25AQIUS(int pm25AQIUS) {
79 this.pm25AQIUS = pm25AQIUS;
82 public float getPm25Ugm3() {
86 public void setPm25Ugm3(float pm25Ugm3) {
87 this.pm25Ugm3 = pm25Ugm3;
90 public float getTemperatureC() {
94 public void setTemperatureC(float temperatureC) {
95 this.temperatureC = temperatureC;
98 public float getTemperatureF() {
102 public void setTemperatureF(float temperatureF) {
103 this.temperatureF = temperatureF;
106 public int getVocPpb() {
110 public void setVocPpb(int vocPpb) {
111 this.vocPpb = vocPpb;