]> git.basschouten.com Git - openhab-addons.git/blob
afe0a67fa6c302f6f311b4205ae9f0007b513352
[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.tivo.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link TiVoBindingConstants} 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     public static final int POLLING_DELAY_12HR_S = 43200;
33
34     // List of all Thing Type UIDs
35     public static final ThingTypeUID THING_TYPE_TIVO = new ThingTypeUID(BINDING_ID, "sckt");
36
37     // List of all Channel ids
38     public static final String CHANNEL_TIVO_CHANNEL_FORCE = "channelForce";
39     public static final String CHANNEL_TIVO_CHANNEL_SET = "channelSet";
40     public static final String CHANNEL_TIVO_IS_RECORDING = "isRecording";
41     public static final String CHANNEL_TIVO_TELEPORT = "menuTeleport";
42     public static final String CHANNEL_TIVO_IRCMD = "irCommand";
43     public static final String CHANNEL_TIVO_KBDCMD = "kbdCommand";
44     public static final String CHANNEL_TIVO_STATUS = "dvrStatus";
45
46     // List of all configuration Properties
47     public static final String CONFIG_HOST = "host";
48     public static final String CONFIG_PORT = "tcpPort";
49 }