2 * Copyright (c) 2010-2021 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.json.airvisualpro;
15 import org.openhab.binding.airvisualnode.internal.json.airvisual.PowerSaving;
20 * @author Victor Antonovich - Initial contribution
22 public class Settings {
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;
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,
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;
62 public String getFollowMode() {
66 public void setFollowMode(String followMode) {
67 this.followMode = followMode;
70 public String getFollowedStation() {
71 return followedStation;
74 public void setFollowedStation(String followedStation) {
75 this.followedStation = followedStation;
78 public boolean isIsAqiUsa() {
82 public void setIsAqiUsa(boolean isAqiUsa) {
83 this.isAqiUsa = isAqiUsa;
86 public boolean isIsConcentrationShowed() {
87 return isConcentrationShowed;
90 public void setIsConcentrationShowed(boolean isConcentrationShowed) {
91 this.isConcentrationShowed = isConcentrationShowed;
94 public boolean isIsIndoor() {
98 public void setIsIndoor(boolean isIndoor) {
99 this.isIndoor = isIndoor;
102 public boolean isIsLcdOn() {
106 public void setIsLcdOn(boolean isLcdOn) {
107 this.isLcdOn = isLcdOn;
110 public boolean isIsNetworkTime() {
111 return isNetworkTime;
114 public void setIsNetworkTime(boolean isNetworkTime) {
115 this.isNetworkTime = isNetworkTime;
118 public boolean isIsTemperatureCelsius() {
119 return isTemperatureCelsius;
122 public void setIsTemperatureCelsius(boolean isTemperatureCelsius) {
123 this.isTemperatureCelsius = isTemperatureCelsius;
126 public String getLanguage() {
130 public void setLanguage(String language) {
131 this.language = language;
134 public int getLcdBrightness() {
135 return lcdBrightness;
138 public void setLcdBrightness(int lcdBrightness) {
139 this.lcdBrightness = lcdBrightness;
142 public String getNodeName() {
146 public void setNodeName(String nodeName) {
147 this.nodeName = nodeName;
150 public PowerSaving getPowerSaving() {
154 public void setPowerSaving(PowerSaving powerSaving) {
155 this.powerSaving = powerSaving;
158 public String getSpeedUnit() {
162 public void setSpeedUnit(String speedUnit) {
163 this.speedUnit = speedUnit;
166 public String getTimezone() {
170 public void setTimezone(String timezone) {
171 this.timezone = timezone;