]> git.basschouten.com Git - openhab-addons.git/blob
c974d2cac65c1879610b75b6d9918630bc1084cf
[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.lirc.internal;
14
15 import java.util.Set;
16 import java.util.stream.Collectors;
17 import java.util.stream.Stream;
18
19 import org.openhab.core.thing.ThingTypeUID;
20
21 /**
22  * The {@link LIRCBinding} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author Andrew Nagle - Initial contribution
26  */
27 public class LIRCBindingConstants {
28
29     public static final String BINDING_ID = "lirc";
30     public static final int DISCOVERY_TIMOUT = 5;
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
34     public static final ThingTypeUID THING_TYPE_REMOTE = new ThingTypeUID(BINDING_ID, "remote");
35
36     // List of all channel ids
37     public static final String CHANNEL_EVENT = "event";
38     public static final String CHANNEL_TRANSMIT = "transmit";
39
40     // List of all supported thing types
41     public static final Set<ThingTypeUID> SUPPORTED_DEVICE_TYPES = Set.of(THING_TYPE_REMOTE);
42     public static final Set<ThingTypeUID> SUPPORTED_BRIDGE_TYPES = Set.of(THING_TYPE_BRIDGE);
43     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Stream.of(THING_TYPE_REMOTE, THING_TYPE_BRIDGE)
44             .collect(Collectors.toSet());
45
46     // List of all properties
47     public static final String PROPERTY_REMOTE = "remote";
48 }