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.somfytahoma.internal.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.somfytahoma.internal.SomfyTahomaBindingConstants;
19 * The {@link SomfyTahomaConfig} is is the base class for configuration
20 * information held by devices and modules.
22 * @author Ondrej Pecta - Initial contribution
23 * @author Laurent Garnier - new parameter portalUrl
26 public class SomfyTahomaConfig {
27 private String cloudPortal = SomfyTahomaBindingConstants.TAHOMA_PORTAL;
28 private String email = "";
29 private String password = "";
30 private int refresh = 30;
31 private int statusTimeout = 300;
32 private int retries = 10;
33 private int retryDelay = 1000;
34 private boolean devMode = false;
35 private String pin = "";
36 private String ip = "";
37 private String token = "";
39 public String getCloudPortal() {
43 public String getEmail() {
47 public String getPassword() {
51 public int getRefresh() {
55 public int getStatusTimeout() {
59 public int getRetries() {
63 public int getRetryDelay() {
67 public boolean isDevMode() {
71 public String getPin() {
75 public String getIp() {
79 public String getToken() {
83 public void setCloudPortal(String cloudPortal) {
84 this.cloudPortal = cloudPortal;
87 public void setEmail(String email) {
91 public void setPassword(String password) {
92 this.password = password;
95 public void setRetries(int retries) {
96 this.retries = retries;
99 public void setRetryDelay(int retryDelay) {
100 this.retryDelay = retryDelay;
103 public void setPin(String pin) {
107 public void setIp(String ip) {
111 public void setToken(String token) {