]> git.basschouten.com Git - openhab-addons.git/blob
b07d62e2fadb466308f2954e6da9589daf6abd61
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.vizio.internal;
14
15 import java.util.Collections;
16 import java.util.Set;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
20
21 /**
22  * The {@link VizioBindingConstants} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author Michael Lobstein - Initial contribution
26  */
27 @NonNullByDefault
28 public class VizioBindingConstants {
29     public static final String BINDING_ID = "vizio";
30     public static final String PROPERTY_UUID = "uuid";
31     public static final String PROPERTY_HOST_NAME = "hostName";
32     public static final String PROPERTY_PORT = "port";
33     public static final String PROPERTY_AUTH_TOKEN = "authToken";
34     public static final String PROPERTY_APP_LIST_JSON = "appListJson";
35     public static final String EMPTY = "";
36     public static final String MODIFY_STRING_SETTING_JSON = "{\"REQUEST\": \"MODIFY\",\"VALUE\": \"%s\",\"HASHVAL\": %d}";
37     public static final String MODIFY_INT_SETTING_JSON = "{\"REQUEST\": \"MODIFY\",\"VALUE\": %d,\"HASHVAL\": %d}";
38     public static final String UNKNOWN_APP_STR = "Unknown app_id: %d, name_space: %d";
39     public static final String ON = "ON";
40     public static final String OFF = "OFF";
41
42     // List of all Thing Type UIDs
43     public static final ThingTypeUID THING_TYPE_VIZIO_TV = new ThingTypeUID(BINDING_ID, "vizio_tv");
44     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.singleton(THING_TYPE_VIZIO_TV);
45
46     // List of all Channel id's
47     public static final String POWER = "power";
48     public static final String VOLUME = "volume";
49     public static final String MUTE = "mute";
50     public static final String SOURCE = "source";
51     public static final String ACTIVE_APP = "activeApp";
52     public static final String CONTROL = "control";
53     public static final String BUTTON = "button";
54 }