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.easee.internal.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link EaseeConfiguration} class contains fields mapping thing configuration parameters.
20 * @author Alexander Friese - Initial contribution
23 public class EaseeConfiguration {
25 private String username = "";
26 private String password = "";
27 private String siteId = "";
29 private Integer asyncTimeout = 120;
30 private Integer syncTimeout = 120;
31 private Integer dataPollingInterval = 120;
33 public String getUsername() {
37 public void setUsername(String username) {
38 this.username = username;
41 public String getPassword() {
45 public void setPassword(String password) {
46 this.password = password;
49 public String getSiteId() {
53 public void setSiteId(String siteId) {
57 public Integer getAsyncTimeout() {
61 public void setAsyncTimeout(Integer asyncTimeout) {
62 this.asyncTimeout = asyncTimeout;
65 public Integer getSyncTimeout() {
69 public void setSyncTimeout(Integer syncTimeout) {
70 this.syncTimeout = syncTimeout;
73 public Integer getDataPollingInterval() {
74 return dataPollingInterval;
77 public void setDataPollingInterval(Integer dataPollingInterval) {
78 this.dataPollingInterval = dataPollingInterval;
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();