]> git.basschouten.com Git - openhab-addons.git/blob
de65e6febea104759b8eeee54f2a8895c86c4ed9
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.opensprinkler.internal.config;
14
15 import static org.openhab.binding.opensprinkler.internal.OpenSprinklerBindingConstants.DEFAULT_REFRESH_RATE;
16 import static org.openhab.binding.opensprinkler.internal.api.OpenSprinklerApiConstants.*;
17
18 /**
19  * The {@link OpenSprinklerHttpInterfaceConfig} class defines the configuration options
20  * for the OpenSprinkler Thing.
21  *
22  * @author Chris Graham - Initial contribution
23  */
24 public class OpenSprinklerHttpInterfaceConfig {
25     /**
26      * Hostname of the OpenSprinkler API.
27      */
28     public String hostname = null;
29
30     /**
31      * The port the OpenSprinkler API is listening on.
32      */
33     public int port = DEFAULT_API_PORT;
34
35     /**
36      * The password to connect to the OpenSprinkler API.
37      */
38     public String password = DEFAULT_ADMIN_PASSWORD;
39
40     /**
41      * Number of seconds in between refreshes from the OpenSprinkler device.
42      */
43     public int refresh = DEFAULT_REFRESH_RATE;
44     /**
45      * The basic auth username to use when the OpenSprinkler device is behind a reverse proxy with basic auth enabled.
46      */
47     public String basicUsername = null;
48     /**
49      * The basic auth password to use when the OpenSprinkler device is behind a reverse proxy with basic auth enabled.
50      */
51     public String basicPassword = null;
52 }