]> git.basschouten.com Git - openhab-addons.git/blob
06b68d32dea26d26379c10a09fdae358cfb08869
[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 /**
16  * Status data.
17  *
18  * @author Victor Antonovich - Initial contribution
19  */
20 public class Status {
21
22     private String appVersion;
23     private int battery;
24     private long datetime;
25     private String model;
26     private String sensorPm25Serial;
27     private int syncTime;
28     private String systemVersion;
29     private int usedMemory;
30     private int wifiStrength;
31
32     public Status(String appVersion, int battery, long datetime, String model, String sensorPm25Serial, int syncTime,
33             String systemVersion, int usedMemory, int wifiStrength) {
34         this.appVersion = appVersion;
35         this.battery = battery;
36         this.datetime = datetime;
37         this.model = model;
38         this.sensorPm25Serial = sensorPm25Serial;
39         this.syncTime = syncTime;
40         this.systemVersion = systemVersion;
41         this.usedMemory = usedMemory;
42         this.wifiStrength = wifiStrength;
43     }
44
45     public String getAppVersion() {
46         return appVersion;
47     }
48
49     public void setAppVersion(String appVersion) {
50         this.appVersion = appVersion;
51     }
52
53     public int getBattery() {
54         return battery;
55     }
56
57     public void setBattery(int battery) {
58         this.battery = battery;
59     }
60
61     public long getDatetime() {
62         return datetime;
63     }
64
65     public void setDatetime(long datetime) {
66         this.datetime = datetime;
67     }
68
69     public String getModel() {
70         return model;
71     }
72
73     public void setModel(String model) {
74         this.model = model;
75     }
76
77     public String getSensorPm25Serial() {
78         return sensorPm25Serial;
79     }
80
81     public void setSensorPm25Serial(String sensorPm25Serial) {
82         this.sensorPm25Serial = sensorPm25Serial;
83     }
84
85     public int getSyncTime() {
86         return syncTime;
87     }
88
89     public void setSyncTime(int syncTime) {
90         this.syncTime = syncTime;
91     }
92
93     public String getSystemVersion() {
94         return systemVersion;
95     }
96
97     public void setSystemVersion(String systemVersion) {
98         this.systemVersion = systemVersion;
99     }
100
101     public int getUsedMemory() {
102         return usedMemory;
103     }
104
105     public void setUsedMemory(int usedMemory) {
106         this.usedMemory = usedMemory;
107     }
108
109     public int getWifiStrength() {
110         return wifiStrength;
111     }
112
113     public void setWifiStrength(int wifiStrength) {
114         this.wifiStrength = wifiStrength;
115     }
116 }