]> git.basschouten.com Git - openhab-addons.git/blob
776122e5f8669d1981d7f85263cc8253dd7ac1d3
[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.androidtv.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link AndroidTVBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author Ben Rosenblum - Initial contribution
25  */
26 @NonNullByDefault
27 public class AndroidTVBindingConstants {
28
29     private static final String BINDING_ID = "androidtv";
30
31     // List of all Thing Type UIDs
32     public static final ThingTypeUID THING_TYPE_GOOGLETV = new ThingTypeUID(BINDING_ID, "googletv");
33     public static final ThingTypeUID THING_TYPE_SHIELDTV = new ThingTypeUID(BINDING_ID, "shieldtv");
34
35     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Set.of(THING_TYPE_GOOGLETV, THING_TYPE_SHIELDTV);
36
37     // List of all Channel ids
38     public static final String CHANNEL_DEBUG = "debug";
39     public static final String CHANNEL_KEYBOARD = "keyboard";
40     public static final String CHANNEL_KEYPRESS = "keypress";
41     public static final String CHANNEL_KEYCODE = "keycode";
42     public static final String CHANNEL_PINCODE = "pincode";
43     public static final String CHANNEL_APP = "app";
44     public static final String CHANNEL_APPNAME = "appname";
45     public static final String CHANNEL_APPURL = "appurl";
46     public static final String CHANNEL_POWER = "power";
47     public static final String CHANNEL_VOLUME = "volume";
48     public static final String CHANNEL_MUTE = "mute";
49     public static final String CHANNEL_PLAYER = "player";
50
51     // List of all config properties
52     public static final String PARAMETER_IP_ADDRESS = "ipAddress";
53     public static final String PARAMETER_GOOGLETV_PORT = "googletvPort";
54     public static final String PARAMETER_SHIELDTV_PORT = "shieldtvPort";
55     public static final String PARAMETER_GTV_ENABLED = "gtvEnabled";
56
57     // List of all static String literals
58     public static final String PIN_REQUEST = "REQUEST";
59 }