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.asuswrt.internal.structures;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link AsuswrtConfiguration} class contains fields mapping thing configuration parameters.
20 * @author Christian Wild - Initial contribution
23 public class AsuswrtConfiguration {
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";
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;