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.anthem.internal;
15 import static org.openhab.binding.anthem.internal.AnthemBindingConstants.*;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * The {@link AnthemConfiguration} is responsible for storing the Anthem thing configuration.
22 * @author Mark Hilbush - Initial contribution
25 public class AnthemConfiguration {
26 public String host = "";
28 public int port = DEFAULT_PORT;
30 public int reconnectIntervalMinutes = DEFAULT_RECONNECT_INTERVAL_MINUTES;
32 public int commandDelayMsec = DEFAULT_COMMAND_DELAY_MSEC;
34 public boolean isValid() {
35 return !host.isBlank();
39 public String toString() {
40 return "AnthemConfiguration{ host=" + host + ", port=" + port + ", reconectIntervalMinutes="
41 + reconnectIntervalMinutes + ", commandDelayMsec=" + commandDelayMsec + " }";