]> git.basschouten.com Git - openhab-addons.git/blob
2f08c00de325a14ce69501d6a1ffaef7168f9ba4
[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.monopriceaudio.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link MonopriceAudioBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Michael Lobstein - Initial contribution
23  * @author Michael Lobstein - Add support for additional amplifier types
24  */
25 @NonNullByDefault
26 public class MonopriceAudioBindingConstants {
27
28     public static final String BINDING_ID = "monopriceaudio";
29
30     // List of all Thing Type UIDs
31     // to avoid breaking existing installations, the 10761/DAX66 will still be known as 'amplifier'
32     public static final ThingTypeUID THING_TYPE_MP = new ThingTypeUID(BINDING_ID, "amplifier");
33     public static final ThingTypeUID THING_TYPE_MP70 = new ThingTypeUID(BINDING_ID, "monoprice70");
34     public static final ThingTypeUID THING_TYPE_DAX88 = new ThingTypeUID(BINDING_ID, "dax88");
35     public static final ThingTypeUID THING_TYPE_XT = new ThingTypeUID(BINDING_ID, "xantech");
36
37     // List of all Channel types
38     public static final String CHANNEL_TYPE_POWER = "power";
39     public static final String CHANNEL_TYPE_SOURCE = "source";
40     public static final String CHANNEL_TYPE_VOLUME = "volume";
41     public static final String CHANNEL_TYPE_MUTE = "mute";
42     public static final String CHANNEL_TYPE_TREBLE = "treble";
43     public static final String CHANNEL_TYPE_BASS = "bass";
44     public static final String CHANNEL_TYPE_BALANCE = "balance";
45     public static final String CHANNEL_TYPE_DND = "dnd";
46     public static final String CHANNEL_TYPE_PAGE = "page";
47     public static final String CHANNEL_TYPE_KEYPAD = "keypad";
48     public static final String CHANNEL_TYPE_ALLPOWER = "allpower";
49     public static final String CHANNEL_TYPE_ALLSOURCE = "allsource";
50     public static final String CHANNEL_TYPE_ALLVOLUME = "allvolume";
51     public static final String CHANNEL_TYPE_ALLMUTE = "allmute";
52
53     // misc
54     public static final String ONE = "1";
55     public static final String ZERO = "0";
56     public static final String EMPTY = "";
57     public static final int NIL = -1;
58 }