2 * Copyright (c) 2010-2020 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.opensprinkler.internal.config;
15 import static org.openhab.binding.opensprinkler.internal.OpenSprinklerBindingConstants.DEFAULT_REFRESH_RATE;
16 import static org.openhab.binding.opensprinkler.internal.api.OpenSprinklerApiConstants.*;
19 * The {@link OpenSprinklerHttpInterfaceConfig} class defines the configuration options
20 * for the OpenSprinkler Thing.
22 * @author Chris Graham - Initial contribution
24 public class OpenSprinklerHttpInterfaceConfig {
26 * Hostname of the OpenSprinkler API.
28 public String hostname = null;
31 * The port the OpenSprinkler API is listening on.
33 public int port = DEFAULT_API_PORT;
36 * The password to connect to the OpenSprinkler API.
38 public String password = DEFAULT_ADMIN_PASSWORD;
41 * Number of seconds in between refreshes from the OpenSprinkler device.
43 public int refresh = DEFAULT_REFRESH_RATE;
45 * The basic auth username to use when the OpenSprinkler device is behind a reverse proxy with basic auth enabled.
47 public String basicUsername = null;
49 * The basic auth password to use when the OpenSprinkler device is behind a reverse proxy with basic auth enabled.
51 public String basicPassword = null;