2 * Copyright (c) 2010-2020 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.pulseaudio.internal;
15 import java.util.HashMap;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
22 * The {@link PulseaudioBinding} class defines common constants, which are
23 * used across the whole binding.
25 * @author Tobias Bräutigam - Initial contribution
28 public class PulseaudioBindingConstants {
30 public static final String BINDING_ID = "pulseaudio";
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID COMBINED_SINK_THING_TYPE = new ThingTypeUID(BINDING_ID, "combinedSink");
34 public static final ThingTypeUID SINK_THING_TYPE = new ThingTypeUID(BINDING_ID, "sink");
35 public static final ThingTypeUID SOURCE_THING_TYPE = new ThingTypeUID(BINDING_ID, "source");
36 public static final ThingTypeUID SINK_INPUT_THING_TYPE = new ThingTypeUID(BINDING_ID, "sinkInput");
37 public static final ThingTypeUID SOURCE_OUTPUT_THING_TYPE = new ThingTypeUID(BINDING_ID, "sourceOutput");
39 public static final ThingTypeUID BRIDGE_THING_TYPE = new ThingTypeUID(BINDING_ID, "bridge");
41 // List of all Channel ids
42 public static final String VOLUME_CHANNEL = "volume";
43 public static final String MUTE_CHANNEL = "mute";
44 public static final String STATE_CHANNEL = "state";
45 public static final String SLAVES_CHANNEL = "slaves";
46 public static final String ROUTE_TO_SINK_CHANNEL = "routeToSink";
48 // List of all Parameters
49 public static final String BRIDGE_PARAMETER_HOST = "host";
50 public static final String BRIDGE_PARAMETER_PORT = "port";
51 public static final String BRIDGE_PARAMETER_REFRESH_INTERVAL = "refresh";
53 public static final String DEVICE_PARAMETER_NAME = "name";
55 public static final Map<String, Boolean> TYPE_FILTERS = new HashMap<>();
58 TYPE_FILTERS.put(SINK_THING_TYPE.getId(), true);
59 TYPE_FILTERS.put(SINK_INPUT_THING_TYPE.getId(), false);
60 TYPE_FILTERS.put(SOURCE_THING_TYPE.getId(), false);
61 TYPE_FILTERS.put(SOURCE_OUTPUT_THING_TYPE.getId(), false);