]> git.basschouten.com Git - openhab-addons.git/blob
8f377521820b4501c71985f68b95a113952c7f4a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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
35     public String getCloudPortal() {
36         return cloudPortal;
37     }
38
39     public String getEmail() {
40         return email;
41     }
42
43     public String getPassword() {
44         return password;
45     }
46
47     public int getRefresh() {
48         return refresh;
49     }
50
51     public int getStatusTimeout() {
52         return statusTimeout;
53     }
54
55     public int getRetries() {
56         return retries;
57     }
58
59     public int getRetryDelay() {
60         return retryDelay;
61     }
62
63     public void setCloudPortal(String cloudPortal) {
64         this.cloudPortal = cloudPortal;
65     }
66
67     public void setEmail(String email) {
68         this.email = email;
69     }
70
71     public void setPassword(String password) {
72         this.password = password;
73     }
74
75     public void setRetries(int retries) {
76         this.retries = retries;
77     }
78
79     public void setRetryDelay(int retryDelay) {
80         this.retryDelay = retryDelay;
81     }
82 }