2 * Copyright (c) 2010-2024 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.samsungtv.internal.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.samsungtv.internal.handler.SamsungTvHandler;
19 * Configuration class for {@link SamsungTvHandler}.
21 * @author Pauli Anttila - Initial contribution
22 * @author Arjan Mels - Added MAC Address
25 public class SamsungTvConfiguration {
26 public static final String PROTOCOL = "protocol";
27 public static final String PROTOCOL_NONE = "None";
28 public static final String PROTOCOL_LEGACY = "Legacy";
29 public static final String PROTOCOL_WEBSOCKET = "WebSocket";
30 public static final String PROTOCOL_SECUREWEBSOCKET = "SecureWebSocket";
31 public static final String HOST_NAME = "hostName";
32 public static final String PORT = "port";
33 public static final String MAC_ADDRESS = "macAddress";
34 public static final String REFRESH_INTERVAL = "refreshInterval";
35 public static final String WEBSOCKET_TOKEN = "webSocketToken";
36 public static final int PORT_DEFAULT_LEGACY = 55000;
37 public static final int PORT_DEFAULT_WEBSOCKET = 8001;
38 public static final int PORT_DEFAULT_SECUREWEBSOCKET = 8002;
40 public String protocol;
41 public String hostName;
42 public String macAddress;
44 public int refreshInterval;
45 public String websocketToken;