]> git.basschouten.com Git - openhab-addons.git/blob
aa7e66167b27b6cfe38ae22de0d7f054b57455c5
[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.avmfritz.internal.config;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * Bean holding configuration data for FRITZ! Box.
20  *
21  * @author Robert Bausdorf - Initial contribution
22  */
23 @NonNullByDefault
24 public class AVMFritzBoxConfiguration {
25
26     public @NonNullByDefault({}) String ipAddress;
27     public @Nullable Integer port;
28     public String protocol = "http";
29
30     public @Nullable String user;
31     public @NonNullByDefault({}) String password;
32
33     public long pollingInterval = 15;
34     public long asyncTimeout = 10000;
35     public long syncTimeout = 2000;
36
37     @Override
38     public String toString() {
39         return new StringBuilder().append("[IP=").append(ipAddress).append(",port=").append(port).append(",protocol=")
40                 .append(protocol).append(",user=").append(user).append(",pollingInterval=").append(pollingInterval)
41                 .append(",asyncTimeout=").append(asyncTimeout).append(",syncTimeout=").append(syncTimeout).append("]")
42                 .toString();
43     }
44 }