]> git.basschouten.com Git - openhab-addons.git/blob
f409510209946b92bfbe8f66a3603abb600a82cc
[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.xmltv.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 XmlTVBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author GaĆ«l L'hopital - Initial contribution
25  */
26 @NonNullByDefault
27 public class XmlTVBindingConstants {
28
29     private static final String BINDING_ID = "xmltv";
30
31     // List of all Bridge Type UIDs
32     public static final ThingTypeUID XMLTV_FILE_BRIDGE_TYPE = new ThingTypeUID(BINDING_ID, "xmltvfile");
33     public static final ThingTypeUID XMLTV_CHANNEL_THING_TYPE = new ThingTypeUID(BINDING_ID, "channel");
34
35     // Channel groups
36     public static final String GROUP_NEXT_PROGRAMME = "nextprog";
37     public static final String GROUP_CHANNEL_PROPERTIES = "channelprops";
38
39     // List of all Channel ids
40     public static final String CHANNEL_CHANNEL_URL = "iconUrl";
41     public static final String CHANNEL_ICON = "icon";
42
43     public static final String CHANNEL_PROGRAMME_START = "progStart";
44     public static final String CHANNEL_PROGRAMME_END = "progEnd";
45     public static final String CHANNEL_PROGRAMME_TITLE = "progTitle";
46     public static final String CHANNEL_PROGRAMME_CATEGORY = "progCategory";
47     public static final String CHANNEL_PROGRAMME_ICON = "progIconUrl";
48
49     public static final String CHANNEL_PROGRAMME_ELAPSED = "elapsedTime";
50     public static final String CHANNEL_PROGRAMME_REMAINING = "remainingTime";
51     public static final String CHANNEL_PROGRAMME_PROGRESS = "progress";
52     public static final String CHANNEL_PROGRAMME_TIMELEFT = "timeLeft";
53
54     // Supported Thing types
55     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(XMLTV_FILE_BRIDGE_TYPE,
56             XMLTV_CHANNEL_THING_TYPE);
57 }