]> git.basschouten.com Git - openhab-addons.git/blob
2b1acf6c47f050cbc653fc4936e821835e62a79b
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.samsungtv.internal.config;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.samsungtv.internal.handler.SamsungTvHandler;
17
18 /**
19  * Configuration class for {@link SamsungTvHandler}.
20  *
21  * @author Pauli Anttila - Initial contribution
22  * @author Arjan Mels - Added MAC Address
23  */
24 @NonNullByDefault({})
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;
39
40     public String protocol;
41     public String hostName;
42     public String macAddress;
43     public int port;
44     public int refreshInterval;
45     public String websocketToken;
46 }