]> git.basschouten.com Git - openhab-addons.git/blob
8064cfc43f7576cdddcaf653f2ed3fceec487ef7
[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.easee.internal.config;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link EaseeConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Alexander Friese - Initial contribution
21  */
22 @NonNullByDefault
23 public class EaseeConfiguration {
24
25     private String username = "";
26     private String password = "";
27     private String siteId = "";
28
29     private Integer asyncTimeout = 120;
30     private Integer syncTimeout = 120;
31     private Integer dataPollingInterval = 120;
32
33     public String getUsername() {
34         return username;
35     }
36
37     public void setUsername(String username) {
38         this.username = username;
39     }
40
41     public String getPassword() {
42         return password;
43     }
44
45     public void setPassword(String password) {
46         this.password = password;
47     }
48
49     public String getSiteId() {
50         return siteId;
51     }
52
53     public void setSiteId(String siteId) {
54         this.siteId = siteId;
55     }
56
57     public Integer getAsyncTimeout() {
58         return asyncTimeout;
59     }
60
61     public void setAsyncTimeout(Integer asyncTimeout) {
62         this.asyncTimeout = asyncTimeout;
63     }
64
65     public Integer getSyncTimeout() {
66         return syncTimeout;
67     }
68
69     public void setSyncTimeout(Integer syncTimeout) {
70         this.syncTimeout = syncTimeout;
71     }
72
73     public Integer getDataPollingInterval() {
74         return dataPollingInterval;
75     }
76
77     public void setDataPollingInterval(Integer dataPollingInterval) {
78         this.dataPollingInterval = dataPollingInterval;
79     }
80
81     @Override
82     public String toString() {
83         StringBuilder builder = new StringBuilder();
84         builder.append("EaseeConfiguration [username=").append(username).append(", password=").append(password)
85                 .append(", siteId=").append(siteId).append(", asyncTimeout=").append(asyncTimeout)
86                 .append(", syncTimeout=").append(syncTimeout).append(", dataPollingInterval=")
87                 .append(dataPollingInterval).append("]");
88         return builder.toString();
89     }
90 }