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.plugwiseha.internal.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link PlugwiseHABridgeThingConfig} encapsulates all the configuration options for an instance of the
19 * {@link org.openhab.binding.plugwiseha.internal.handler.PlugwiseHABridgeHandler}.
21 * @author Bas van Wetten - Initial contribution
22 * @author Leo Siepel - finish initial contribution
25 public class PlugwiseHABridgeThingConfig {
27 private String host = "adam";
29 private int port = 80;
31 private String username = "smile";
33 private String smileId = "";
35 private int refresh = 15;
37 public String getHost() {
41 public int getPort() {
45 public String getUsername() {
49 public String getsmileId() {
53 public int getRefresh() {
57 public boolean isValid() {
58 return !host.isBlank() && !username.isBlank() && !smileId.isBlank();
62 public String toString() {
63 return "PlugwiseHABridgeThingConfig{host = " + host + ", port = " + port + ", username = " + username
64 + ", smileId = *****, refresh = " + refresh + "}";