]> git.basschouten.com Git - openhab-addons.git/blob
88d8010adb3ed9c97084d0246c0e74e415298bec
[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.asuswrt.internal.structures;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link AsuswrtConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Christian Wild - Initial contribution
21  */
22 @NonNullByDefault
23 public class AsuswrtConfiguration {
24
25     // Thing configuration properties
26     public static final String CONFIG_USER = "username";
27     public static final String CONFIG_PASS = "password";
28     public static final String CONFIG_HOSTNAME = "hostname";
29     public static final String CONFIG_UPDATE_INTERVAL = "refreshInterval";
30     public static final String CONFIG_SSL_AUTH = "useSSL";
31     public static final String CONFIG_PORT_HTTP = "httpPort";
32     public static final String CONFIG_PORT_HTTPS = "httpsPort";
33
34     // Thing configuration parameters
35     public String hostname = "";
36     public String username = "";
37     public String password = "";
38     public int pollingInterval = 20;
39     public int reconnectInterval = 60;
40     public int discoveryInterval = 3600;
41     public int httpPort = 80;
42     public int httpsPort = 443;
43     public boolean autoDiscoveryEnabled = false;
44     public boolean useSSL = false;
45 }