]> git.basschouten.com Git - openhab-addons.git/blob
c49ee30e42a6ee086d9e73186bd7fa04dcf90845
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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 /**
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 deviceName;
26     private String ipAddress;
27     private String macAddress;
28     private String model;
29     private SensorLife sensorLife;
30     private String sensorPm25Serial;
31     private int syncTime;
32     private String systemVersion;
33     private int usedMemory;
34     private int wifiStrength;
35
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;
45         this.model = model;
46         this.sensorLife = sensorLife;
47         this.sensorPm25Serial = sensorPm25Serial;
48         this.syncTime = syncTime;
49         this.systemVersion = systemVersion;
50         this.usedMemory = usedMemory;
51         this.wifiStrength = wifiStrength;
52     }
53
54     public String getAppVersion() {
55         return appVersion;
56     }
57
58     public void setAppVersion(String appVersion) {
59         this.appVersion = appVersion;
60     }
61
62     public int getBattery() {
63         return battery;
64     }
65
66     public void setBattery(int battery) {
67         this.battery = battery;
68     }
69
70     public long getDatetime() {
71         return datetime;
72     }
73
74     public void setDatetime(long datetime) {
75         this.datetime = datetime;
76     }
77
78     public String getDeviceName() {
79         return deviceName;
80     }
81
82     public void setDeviceName(String deviceName) {
83         this.deviceName = deviceName;
84     }
85
86     public String getIpAddress() {
87         return ipAddress;
88     }
89
90     public void setIpAddress(String ipAddress) {
91         this.ipAddress = ipAddress;
92     }
93
94     public String getMacAddress() {
95         return macAddress;
96     }
97
98     public void setMacAddress(String macAddress) {
99         this.macAddress = macAddress;
100     }
101
102     public String getModel() {
103         return model;
104     }
105
106     public void setModel(String model) {
107         this.model = model;
108     }
109
110     public SensorLife getSensorLife() {
111         return sensorLife;
112     }
113
114     public void setSensorLife(SensorLife sensorLife) {
115         this.sensorLife = sensorLife;
116     }
117
118     public String getSensorPm25Serial() {
119         return sensorPm25Serial;
120     }
121
122     public void setSensorPm25Serial(String sensorPm25Serial) {
123         this.sensorPm25Serial = sensorPm25Serial;
124     }
125
126     public int getSyncTime() {
127         return syncTime;
128     }
129
130     public void setSyncTime(int syncTime) {
131         this.syncTime = syncTime;
132     }
133
134     public String getSystemVersion() {
135         return systemVersion;
136     }
137
138     public void setSystemVersion(String systemVersion) {
139         this.systemVersion = systemVersion;
140     }
141
142     public int getUsedMemory() {
143         return usedMemory;
144     }
145
146     public void setUsedMemory(int usedMemory) {
147         this.usedMemory = usedMemory;
148     }
149
150     public int getWifiStrength() {
151         return wifiStrength;
152     }
153
154     public void setWifiStrength(int wifiStrength) {
155         this.wifiStrength = wifiStrength;
156     }
157 }