]> git.basschouten.com Git - openhab-addons.git/blob
eaba60f565af0d651cade3a97544105fd5051b8f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.somfytahoma.internal.config;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.somfytahoma.internal.SomfyTahomaBindingConstants;
17
18 /**
19  * The {@link SomfyTahomaConfig} is is the base class for configuration
20  * information held by devices and modules.
21  *
22  * @author Ondrej Pecta - Initial contribution
23  * @author Laurent Garnier - new parameter portalUrl
24  */
25 @NonNullByDefault
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 = "";
38
39     public String getCloudPortal() {
40         return cloudPortal;
41     }
42
43     public String getEmail() {
44         return email;
45     }
46
47     public String getPassword() {
48         return password;
49     }
50
51     public int getRefresh() {
52         return refresh;
53     }
54
55     public int getStatusTimeout() {
56         return statusTimeout;
57     }
58
59     public int getRetries() {
60         return retries;
61     }
62
63     public int getRetryDelay() {
64         return retryDelay;
65     }
66
67     public boolean isDevMode() {
68         return devMode;
69     }
70
71     public String getPin() {
72         return pin;
73     }
74
75     public String getIp() {
76         return ip;
77     }
78
79     public String getToken() {
80         return token;
81     }
82
83     public void setCloudPortal(String cloudPortal) {
84         this.cloudPortal = cloudPortal;
85     }
86
87     public void setEmail(String email) {
88         this.email = email;
89     }
90
91     public void setPassword(String password) {
92         this.password = password;
93     }
94
95     public void setRetries(int retries) {
96         this.retries = retries;
97     }
98
99     public void setRetryDelay(int retryDelay) {
100         this.retryDelay = retryDelay;
101     }
102
103     public void setPin(String pin) {
104         this.pin = pin;
105     }
106
107     public void setIp(String ip) {
108         this.ip = ip;
109     }
110
111     public void setToken(String token) {
112         this.token = token;
113     }
114 }