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.airvisual;
18 * @author Victor Antonovich - Initial contribution
20 public class Settings {
22 private String followedStation;
23 private boolean isAqiUsa;
24 private boolean isConcentrationShowed;
25 private boolean isIndoor;
26 private boolean isLcdOn;
27 private boolean isNetworkTime;
28 private boolean isTemperatureCelsius;
29 private String language;
30 private int lcdBrightness;
31 private String nodeName;
32 private PowerSaving powerSaving;
33 private String speedUnit;
34 private String timezone;
36 public Settings(String followedStation, boolean isAqiUsa, boolean isConcentrationShowed, boolean isIndoor,
37 boolean isLcdOn, boolean isNetworkTime, boolean isTemperatureCelsius, String language, int lcdBrightness,
38 String nodeName, PowerSaving powerSaving, String speedUnit, String timezone) {
39 this.followedStation = followedStation;
40 this.isAqiUsa = isAqiUsa;
41 this.isConcentrationShowed = isConcentrationShowed;
42 this.isIndoor = isIndoor;
43 this.isLcdOn = isLcdOn;
44 this.isNetworkTime = isNetworkTime;
45 this.isTemperatureCelsius = isTemperatureCelsius;
46 this.language = language;
47 this.lcdBrightness = lcdBrightness;
48 this.nodeName = nodeName;
49 this.powerSaving = powerSaving;
50 this.speedUnit = speedUnit;
51 this.timezone = timezone;
54 public String getFollowedStation() {
55 return followedStation;
58 public void setFollowedStation(String followedStation) {
59 this.followedStation = followedStation;
62 public boolean isIsAqiUsa() {
66 public void setIsAqiUsa(boolean isAqiUsa) {
67 this.isAqiUsa = isAqiUsa;
70 public boolean isIsConcentrationShowed() {
71 return isConcentrationShowed;
74 public void setIsConcentrationShowed(boolean isConcentrationShowed) {
75 this.isConcentrationShowed = isConcentrationShowed;
78 public boolean isIsIndoor() {
82 public void setIsIndoor(boolean isIndoor) {
83 this.isIndoor = isIndoor;
86 public boolean isIsLcdOn() {
90 public void setIsLcdOn(boolean isLcdOn) {
91 this.isLcdOn = isLcdOn;
94 public boolean isIsNetworkTime() {
98 public void setIsNetworkTime(boolean isNetworkTime) {
99 this.isNetworkTime = isNetworkTime;
102 public boolean isIsTemperatureCelsius() {
103 return isTemperatureCelsius;
106 public void setIsTemperatureCelsius(boolean isTemperatureCelsius) {
107 this.isTemperatureCelsius = isTemperatureCelsius;
110 public String getLanguage() {
114 public void setLanguage(String language) {
115 this.language = language;
118 public int getLcdBrightness() {
119 return lcdBrightness;
122 public void setLcdBrightness(int lcdBrightness) {
123 this.lcdBrightness = lcdBrightness;
126 public String getNodeName() {
130 public void setNodeName(String nodeName) {
131 this.nodeName = nodeName;
134 public PowerSaving getPowerSaving() {
138 public void setPowerSaving(PowerSaving powerSaving) {
139 this.powerSaving = powerSaving;
142 public String getSpeedUnit() {
146 public void setSpeedUnit(String speedUnit) {
147 this.speedUnit = speedUnit;
150 public String getTimezone() {
154 public void setTimezone(String timezone) {
155 this.timezone = timezone;