]> git.basschouten.com Git - openhab-addons.git/blob
04019ccb71c394bd478e4a7d043190c5b3d60b15
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.tivo.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link TiVoBinding} class defines common constants that are
20  * used across the whole binding.
21  *
22  * @author Jayson Kubilis (DigitalBytes) - Initial contribution
23  * @author Andrew Black (AndyXMB) - Addition of Min / Max Channel and channel scanning properties
24  * @author Michael Lobstein - Updated for OH3
25  */
26
27 @NonNullByDefault
28 public class TiVoBindingConstants {
29     public static final String BINDING_ID = "tivo";
30     public static final int CONFIG_SOCKET_TIMEOUT_MS = 1000;
31     public static final int INIT_POLLING_DELAY_S = 5;
32
33     // List of all Thing Type UIDs
34     public static final ThingTypeUID THING_TYPE_TIVO = new ThingTypeUID(BINDING_ID, "sckt");
35
36     // List of all Channel ids
37     public static final String CHANNEL_TIVO_CHANNEL_FORCE = "channelForce";
38     public static final String CHANNEL_TIVO_CHANNEL_SET = "channelSet";
39     public static final String CHANNEL_TIVO_IS_RECORDING = "isRecording";
40     public static final String CHANNEL_TIVO_TELEPORT = "menuTeleport";
41     public static final String CHANNEL_TIVO_IRCMD = "irCommand";
42     public static final String CHANNEL_TIVO_KBDCMD = "kbdCommand";
43     public static final String CHANNEL_TIVO_STATUS = "dvrStatus";
44
45     // List of all configuration Properties
46     public static final String CONFIG_HOST = "host";
47     public static final String CONFIG_PORT = "tcpPort";
48 }