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;
15 import org.openhab.binding.airvisualnode.internal.dto.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,
44 this.followMode = followMode;
45 this.followedStation = followedStation;
46 this.isAqiUsa = isAqiUsa;
47 this.isConcentrationShowed = isConcentrationShowed;
48 this.isIndoor = isIndoor;
49 this.isLcdOn = isLcdOn;
50 this.isNetworkTime = isNetworkTime;
51 this.isTemperatureCelsius = isTemperatureCelsius;
52 this.language = language;
53 this.lcdBrightness = lcdBrightness;
54 this.nodeName = nodeName;
55 this.powerSaving = powerSaving;
56 this.sensorMode = sensorMode;
57 this.speedUnit = speedUnit;
58 this.timezone = timezone;
61 public String getFollowMode() {
65 public void setFollowMode(String followMode) {
66 this.followMode = followMode;
69 public String getFollowedStation() {
70 return followedStation;
73 public void setFollowedStation(String followedStation) {
74 this.followedStation = followedStation;
77 public boolean isIsAqiUsa() {
81 public void setIsAqiUsa(boolean isAqiUsa) {
82 this.isAqiUsa = isAqiUsa;
85 public boolean isIsConcentrationShowed() {
86 return isConcentrationShowed;
89 public void setIsConcentrationShowed(boolean isConcentrationShowed) {
90 this.isConcentrationShowed = isConcentrationShowed;
93 public boolean isIsIndoor() {
97 public void setIsIndoor(boolean isIndoor) {
98 this.isIndoor = isIndoor;
101 public boolean isIsLcdOn() {
105 public void setIsLcdOn(boolean isLcdOn) {
106 this.isLcdOn = isLcdOn;
109 public boolean isIsNetworkTime() {
110 return isNetworkTime;
113 public void setIsNetworkTime(boolean isNetworkTime) {
114 this.isNetworkTime = isNetworkTime;
117 public boolean isIsTemperatureCelsius() {
118 return isTemperatureCelsius;
121 public void setIsTemperatureCelsius(boolean isTemperatureCelsius) {
122 this.isTemperatureCelsius = isTemperatureCelsius;
125 public String getLanguage() {
129 public void setLanguage(String language) {
130 this.language = language;
133 public int getLcdBrightness() {
134 return lcdBrightness;
137 public void setLcdBrightness(int lcdBrightness) {
138 this.lcdBrightness = lcdBrightness;
141 public String getNodeName() {
145 public void setNodeName(String nodeName) {
146 this.nodeName = nodeName;
149 public PowerSaving getPowerSaving() {
153 public void setPowerSaving(PowerSaving powerSaving) {
154 this.powerSaving = powerSaving;
157 public String getSpeedUnit() {
161 public void setSpeedUnit(String speedUnit) {
162 this.speedUnit = speedUnit;
165 public String getTimezone() {
169 public void setTimezone(String timezone) {
170 this.timezone = timezone;