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.airvisualpro;
18 * @author Victor Antonovich - Initial contribution
22 private String appVersion;
24 private long datetime;
25 private String deviceName;
26 private String ipAddress;
27 private String macAddress;
29 private SensorLife sensorLife;
30 private String sensorPm25Serial;
32 private String systemVersion;
33 private int usedMemory;
34 private int wifiStrength;
36 public Status(String appVersion, int battery, long datetime, String deviceName, String ipAddress, String macAddress,
37 String model, SensorLife sensorLife, String sensorPm25Serial, int syncTime, String systemVersion,
38 int usedMemory, int wifiStrength) {
39 this.appVersion = appVersion;
40 this.battery = battery;
41 this.datetime = datetime;
42 this.deviceName = deviceName;
43 this.ipAddress = ipAddress;
44 this.macAddress = macAddress;
46 this.sensorLife = sensorLife;
47 this.sensorPm25Serial = sensorPm25Serial;
48 this.syncTime = syncTime;
49 this.systemVersion = systemVersion;
50 this.usedMemory = usedMemory;
51 this.wifiStrength = wifiStrength;
54 public String getAppVersion() {
58 public void setAppVersion(String appVersion) {
59 this.appVersion = appVersion;
62 public int getBattery() {
66 public void setBattery(int battery) {
67 this.battery = battery;
70 public long getDatetime() {
74 public void setDatetime(long datetime) {
75 this.datetime = datetime;
78 public String getDeviceName() {
82 public void setDeviceName(String deviceName) {
83 this.deviceName = deviceName;
86 public String getIpAddress() {
90 public void setIpAddress(String ipAddress) {
91 this.ipAddress = ipAddress;
94 public String getMacAddress() {
98 public void setMacAddress(String macAddress) {
99 this.macAddress = macAddress;
102 public String getModel() {
106 public void setModel(String model) {
110 public SensorLife getSensorLife() {
114 public void setSensorLife(SensorLife sensorLife) {
115 this.sensorLife = sensorLife;
118 public String getSensorPm25Serial() {
119 return sensorPm25Serial;
122 public void setSensorPm25Serial(String sensorPm25Serial) {
123 this.sensorPm25Serial = sensorPm25Serial;
126 public int getSyncTime() {
130 public void setSyncTime(int syncTime) {
131 this.syncTime = syncTime;
134 public String getSystemVersion() {
135 return systemVersion;
138 public void setSystemVersion(String systemVersion) {
139 this.systemVersion = systemVersion;
142 public int getUsedMemory() {
146 public void setUsedMemory(int usedMemory) {
147 this.usedMemory = usedMemory;
150 public int getWifiStrength() {
154 public void setWifiStrength(int wifiStrength) {
155 this.wifiStrength = wifiStrength;