]> git.basschouten.com Git - openhab-addons.git/blob
4c65db14efcf41ae2eb9e3967a3c8a0fd601460c
[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.json.airvisualpro;
14
15 import org.openhab.binding.airvisualnode.internal.json.airvisual.PowerSaving;
16
17 /**
18  * Settings data.
19  *
20  * @author Victor Antonovich - Initial contribution
21  */
22 public class Settings {
23
24     private String followMode;
25     private String followedStation;
26     private boolean isAqiUsa;
27     private boolean isConcentrationShowed;
28     private boolean isIndoor;
29     private boolean isLcdOn;
30     private boolean isNetworkTime;
31     private boolean isTemperatureCelsius;
32     private String language;
33     private int lcdBrightness;
34     private String nodeName;
35     private PowerSaving powerSaving;
36     private SensorMode sensorMode;
37     private String speedUnit;
38     private String timezone;
39
40     public Settings(String followMode, String followedStation, boolean isAqiUsa, boolean isConcentrationShowed,
41             boolean isIndoor, boolean isLcdOn, boolean isNetworkTime, boolean isTemperatureCelsius, String language,
42             int lcdBrightness, String nodeName, PowerSaving powerSaving, SensorMode sensorMode, String speedUnit,
43             String timezone) {
44
45         this.followMode = followMode;
46         this.followedStation = followedStation;
47         this.isAqiUsa = isAqiUsa;
48         this.isConcentrationShowed = isConcentrationShowed;
49         this.isIndoor = isIndoor;
50         this.isLcdOn = isLcdOn;
51         this.isNetworkTime = isNetworkTime;
52         this.isTemperatureCelsius = isTemperatureCelsius;
53         this.language = language;
54         this.lcdBrightness = lcdBrightness;
55         this.nodeName = nodeName;
56         this.powerSaving = powerSaving;
57         this.sensorMode = sensorMode;
58         this.speedUnit = speedUnit;
59         this.timezone = timezone;
60     }
61
62     public String getFollowMode() {
63         return followMode;
64     }
65
66     public void setFollowMode(String followMode) {
67         this.followMode = followMode;
68     }
69
70     public String getFollowedStation() {
71         return followedStation;
72     }
73
74     public void setFollowedStation(String followedStation) {
75         this.followedStation = followedStation;
76     }
77
78     public boolean isIsAqiUsa() {
79         return isAqiUsa;
80     }
81
82     public void setIsAqiUsa(boolean isAqiUsa) {
83         this.isAqiUsa = isAqiUsa;
84     }
85
86     public boolean isIsConcentrationShowed() {
87         return isConcentrationShowed;
88     }
89
90     public void setIsConcentrationShowed(boolean isConcentrationShowed) {
91         this.isConcentrationShowed = isConcentrationShowed;
92     }
93
94     public boolean isIsIndoor() {
95         return isIndoor;
96     }
97
98     public void setIsIndoor(boolean isIndoor) {
99         this.isIndoor = isIndoor;
100     }
101
102     public boolean isIsLcdOn() {
103         return isLcdOn;
104     }
105
106     public void setIsLcdOn(boolean isLcdOn) {
107         this.isLcdOn = isLcdOn;
108     }
109
110     public boolean isIsNetworkTime() {
111         return isNetworkTime;
112     }
113
114     public void setIsNetworkTime(boolean isNetworkTime) {
115         this.isNetworkTime = isNetworkTime;
116     }
117
118     public boolean isIsTemperatureCelsius() {
119         return isTemperatureCelsius;
120     }
121
122     public void setIsTemperatureCelsius(boolean isTemperatureCelsius) {
123         this.isTemperatureCelsius = isTemperatureCelsius;
124     }
125
126     public String getLanguage() {
127         return language;
128     }
129
130     public void setLanguage(String language) {
131         this.language = language;
132     }
133
134     public int getLcdBrightness() {
135         return lcdBrightness;
136     }
137
138     public void setLcdBrightness(int lcdBrightness) {
139         this.lcdBrightness = lcdBrightness;
140     }
141
142     public String getNodeName() {
143         return nodeName;
144     }
145
146     public void setNodeName(String nodeName) {
147         this.nodeName = nodeName;
148     }
149
150     public PowerSaving getPowerSaving() {
151         return powerSaving;
152     }
153
154     public void setPowerSaving(PowerSaving powerSaving) {
155         this.powerSaving = powerSaving;
156     }
157
158     public String getSpeedUnit() {
159         return speedUnit;
160     }
161
162     public void setSpeedUnit(String speedUnit) {
163         this.speedUnit = speedUnit;
164     }
165
166     public String getTimezone() {
167         return timezone;
168     }
169
170     public void setTimezone(String timezone) {
171         this.timezone = timezone;
172     }
173 }