]> git.basschouten.com Git - openhab-addons.git/blob
27957a07118744126b37b5f62bcb544a2b205302
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.nibeuplink.internal.config;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * Bean holding configuration data according to bridge.xml
20  *
21  * @author Alexander Friese - initial contribution
22  */
23 @NonNullByDefault
24 public class NibeUplinkConfiguration {
25
26     private @Nullable String user;
27     private @Nullable String password;
28     private @Nullable String nibeId;
29
30     private Integer asyncTimeout = 120;
31     private Integer syncTimeout = 120;
32     private Integer pollingInterval = 60;
33     private Integer houseKeepingInterval = 3600;
34
35     public @Nullable String getUser() {
36         return user;
37     }
38
39     public void setUser(String user) {
40         this.user = user;
41     }
42
43     public @Nullable String getPassword() {
44         return password;
45     }
46
47     public void setPassword(String password) {
48         this.password = password;
49     }
50
51     public @Nullable String getNibeId() {
52         return nibeId;
53     }
54
55     public void setNibeId(String nibeId) {
56         this.nibeId = nibeId;
57     }
58
59     public Integer getAsyncTimeout() {
60         return asyncTimeout;
61     }
62
63     public void setAsyncTimeout(Integer asyncTimeout) {
64         this.asyncTimeout = asyncTimeout;
65     }
66
67     public Integer getSyncTimeout() {
68         return syncTimeout;
69     }
70
71     public void setSyncTimeout(Integer syncTimeout) {
72         this.syncTimeout = syncTimeout;
73     }
74
75     public Integer getPollingInterval() {
76         return pollingInterval;
77     }
78
79     public void setPollingInterval(Integer pollingInterval) {
80         this.pollingInterval = pollingInterval;
81     }
82
83     public Integer getHouseKeepingInterval() {
84         return houseKeepingInterval;
85     }
86
87     public void setHouseKeepingInterval(Integer houseKeepingInterval) {
88         this.houseKeepingInterval = houseKeepingInterval;
89     }
90
91     @Override
92     public String toString() {
93         return getClass().getSimpleName() + "{ user=" + getUser() + ", password=" + getPassword() + ", nibeId="
94                 + getNibeId() + ", pollingInterval=" + getPollingInterval() + ", houseKeepingInterval="
95                 + getHouseKeepingInterval() + ", asyncTimeout=" + getAsyncTimeout() + ", syncTimeout="
96                 + getSyncTimeout() + "}";
97     }
98 }