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.lgwebos.internal.handler;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The {@link LGWebOSConfiguration} class contains the thing configuration
20 * parameters for LGWebOS devices
22 * @author Sebastian Prehn - Initial contribution
25 public class LGWebOSConfiguration {
27 String host; // name has to match LGWebOSBindingConstants.CONFIG_HOST
29 String key; // name has to match LGWebOSBindingConstants.CONFIG_KEY
31 String macAddress; // name has to match LGWebOSBindingConstants.CONFIG_MAC_ADDRESS
32 boolean useTLS = true;
34 public String getHost() {
36 return h == null ? "" : h;
39 public String getKey() {
41 return k == null ? "" : k;
44 public boolean getUseTLS() {
48 public String getMacAddress() {
49 String m = macAddress;
50 return m == null ? "" : m;
54 public String toString() {
55 return "WebOSConfiguration [host=" + host + ", useTLS=" + useTLS + ", key.length=" + getKey().length()
56 + ", macAddress=" + macAddress + "]";