2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.xmltv.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link XmlTVBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author Gaƫl L'hopital - Initial contribution
27 public class XmlTVBindingConstants {
29 private static final String BINDING_ID = "xmltv";
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");
36 public static final String GROUP_NEXT_PROGRAMME = "nextprog";
37 public static final String GROUP_CHANNEL_PROPERTIES = "channelprops";
39 // List of all Channel ids
40 public static final String CHANNEL_CHANNEL_URL = "iconUrl";
41 public static final String CHANNEL_ICON = "icon";
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";
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";
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);