2 * Copyright (c) 2010-2023 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.dto.airvisual;
15 import org.openhab.binding.airvisualnode.internal.dto.MeasurementsInterface;
17 import com.google.gson.annotations.SerializedName;
22 * @author Victor Antonovich - Initial contribution
24 public class Measurements implements MeasurementsInterface {
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;
40 public Measurements(int co2Ppm, int humidityRH, int pm25AQICN, int pm25AQIUS, float pm25Ugm3, float temperatureC,
41 float temperatureF, int vocPpb) {
43 this.humidityRH = humidityRH;
44 this.pm25AQICN = pm25AQICN;
45 this.pm25AQIUS = pm25AQIUS;
46 this.pm25Ugm3 = pm25Ugm3;
47 this.temperatureC = temperatureC;
48 this.temperatureF = temperatureF;
52 public int getCo2Ppm() {
56 public void setCo2Ppm(int co2Ppm) {
60 public int getHumidityRH() {
64 public void setHumidityRH(int humidityRH) {
65 this.humidityRH = humidityRH;
68 public int getPm25AQICN() {
72 public void setPm25AQICN(int pm25AQICN) {
73 this.pm25AQICN = pm25AQICN;
76 public int getPm25AQIUS() {
80 public void setPm25AQIUS(int pm25AQIUS) {
81 this.pm25AQIUS = pm25AQIUS;
85 public float getPm01Ugm3() {
90 public float getPm10Ugm3() {
94 public float getPm25Ugm3() {
98 public void setPm25Ugm3(float pm25Ugm3) {
99 this.pm25Ugm3 = pm25Ugm3;
102 public float getTemperatureC() {
106 public void setTemperatureC(float temperatureC) {
107 this.temperatureC = temperatureC;
110 public float getTemperatureF() {
114 public void setTemperatureF(float temperatureF) {
115 this.temperatureF = temperatureF;
118 public int getVocPpb() {
122 public void setVocPpb(int vocPpb) {
123 this.vocPpb = vocPpb;