]> git.basschouten.com Git - openhab-addons.git/blob
ea002a354a4b26ef557dadd0793e3fcec56599a0
[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.yamahamusiccast.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17 import org.openhab.core.thing.type.ChannelTypeUID;
18
19 /**
20  * The {@link YamahaMusiccastBindingConstants} class defines common constants, which are
21  * used across the whole binding.
22  *
23  * @author Lennert Coopman - Initial contribution
24  */
25 @NonNullByDefault
26 public class YamahaMusiccastBindingConstants {
27
28     private static final String BINDING_ID = "yamahamusiccast";
29
30     // List of all Thing Type UIDs
31     public static final ThingTypeUID THING_DEVICE = new ThingTypeUID(BINDING_ID, "device");
32     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
33
34     // List of all Channel Type UIDs
35     public static final ChannelTypeUID CHANNEL_TYPE_UID_POWER = new ChannelTypeUID("system:power");
36     public static final ChannelTypeUID CHANNEL_TYPE_UID_MUTE = new ChannelTypeUID("system:mute");
37     public static final ChannelTypeUID CHANNEL_TYPE_UID_VOLUME = new ChannelTypeUID("system:volume");
38     public static final ChannelTypeUID CHANNEL_TYPE_UID_VOLUMEABS = new ChannelTypeUID(BINDING_ID, "volumeAbs");
39     public static final ChannelTypeUID CHANNEL_TYPE_UID_INPUT = new ChannelTypeUID(BINDING_ID, "input");
40     public static final ChannelTypeUID CHANNEL_TYPE_UID_SOUNDPROGRAM = new ChannelTypeUID(BINDING_ID, "soundProgram");
41     public static final ChannelTypeUID CHANNEL_TYPE_UID_SELECTPRESET = new ChannelTypeUID(BINDING_ID, "selectPreset");
42     public static final ChannelTypeUID CHANNEL_TYPE_UID_SLEEP = new ChannelTypeUID(BINDING_ID, "sleep");
43     public static final ChannelTypeUID CHANNEL_TYPE_UID_RECALLSCENE = new ChannelTypeUID(BINDING_ID, "recallScene");
44     public static final ChannelTypeUID CHANNEL_TYPE_UID_MCLINKSTATUS = new ChannelTypeUID(BINDING_ID, "mclinkStatus");
45
46     // List of all Channel ids
47     public static final String CHANNEL_POWER = "power";
48     public static final String CHANNEL_MUTE = "mute";
49     public static final String CHANNEL_VOLUME = "volume";
50     public static final String CHANNEL_VOLUMEABS = "volumeAbs";
51     public static final String CHANNEL_INPUT = "input";
52     public static final String CHANNEL_SOUNDPROGRAM = "soundProgram";
53     public static final String CHANNEL_SELECTPRESET = "selectPreset";
54     public static final String CHANNEL_PLAYER = "player";
55     public static final String CHANNEL_SLEEP = "sleep";
56     public static final String CHANNEL_RECALLSCENE = "recallScene";
57     public static final String CHANNEL_ARTIST = "artist";
58     public static final String CHANNEL_TRACK = "track";
59     public static final String CHANNEL_ALBUM = "album";
60     public static final String CHANNEL_ALBUMART = "albumArt";
61     public static final String CHANNEL_REPEAT = "repeat";
62     public static final String CHANNEL_SHUFFLE = "shuffle";
63     public static final String CHANNEL_MCLINKSTATUS = "mclinkStatus";
64     public static final String CHANNEL_PLAYTIME = "playTime";
65     public static final String CHANNEL_TOTALTIME = "totalTime";
66
67     public static final int CONNECTION_TIMEOUT_MILLISEC = 5000;
68     public static final int LONG_CONNECTION_TIMEOUT_MILLISEC = 60000;
69     public static final String HTTP = "http://";
70     public static final String YAMAHA_EXTENDED_CONTROL = "/YamahaExtendedControl/v1/";
71 }