]> git.basschouten.com Git - openhab-addons.git/blob
e0e4e2a5f16f4e7e4eaf3801d85cb5e3d0b81564
[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.jellyfin.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 JellyfinBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author Miguel Álvarez - Initial contribution
25  */
26 @NonNullByDefault
27 public class JellyfinBindingConstants {
28
29     static final String BINDING_ID = "jellyfin";
30
31     // List of all Thing Type UIDs
32     public static final ThingTypeUID THING_TYPE_SERVER = new ThingTypeUID(BINDING_ID, "server");
33     public static final ThingTypeUID THING_TYPE_CLIENT = new ThingTypeUID(BINDING_ID, "client");
34     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Set.of(THING_TYPE_SERVER, THING_TYPE_CLIENT);
35
36     // List of all Channel ids
37     public static final String SEND_NOTIFICATION_CHANNEL = "send-notification";
38     public static final String MEDIA_CONTROL_CHANNEL = "media-control";
39     public static final String PLAYING_ITEM_PERCENTAGE_CHANNEL = "playing-item-percentage";
40     public static final String PLAYING_ITEM_ID_CHANNEL = "playing-item-id";
41     public static final String PLAYING_ITEM_NAME_CHANNEL = "playing-item-name";
42     public static final String PLAYING_ITEM_SERIES_NAME_CHANNEL = "playing-item-series-name";
43     public static final String PLAYING_ITEM_SEASON_NAME_CHANNEL = "playing-item-season-name";
44     public static final String PLAYING_ITEM_SEASON_CHANNEL = "playing-item-season";
45     public static final String PLAYING_ITEM_EPISODE_CHANNEL = "playing-item-episode";
46     public static final String PLAYING_ITEM_GENRES_CHANNEL = "playing-item-genders";
47     public static final String PLAYING_ITEM_TYPE_CHANNEL = "playing-item-type";
48     public static final String PLAYING_ITEM_SECOND_CHANNEL = "playing-item-second";
49     public static final String PLAYING_ITEM_TOTAL_SECOND_CHANNEL = "playing-item-total-seconds";
50     public static final String PLAY_BY_TERMS_CHANNEL = "play-by-terms";
51     public static final String PLAY_NEXT_BY_TERMS_CHANNEL = "play-next-by-terms";
52     public static final String PLAY_LAST_BY_TERMS_CHANNEL = "play-last-by-terms";
53     public static final String BROWSE_ITEM_BY_TERMS_CHANNEL = "browse-by-terms";
54     public static final String PLAY_BY_ID_CHANNEL = "play-by-id";
55     public static final String PLAY_NEXT_BY_ID_CHANNEL = "play-next-by-id";
56     public static final String PLAY_LAST_BY_ID_CHANNEL = "play-last-by-id";
57     public static final String BROWSE_ITEM_BY_ID_CHANNEL = "browse-by-id";
58     // Discovery
59     public static final int DISCOVERY_RESULT_TTL_SEC = 600;
60 }