]> git.basschouten.com Git - openhab-addons.git/blob
42c3bddf74c138f700321889e73b23b9e08a5222
[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.meteoblue.internal;
14
15 import java.util.Arrays;
16 import java.util.Collections;
17 import java.util.HashSet;
18 import java.util.Set;
19
20 import org.openhab.core.thing.ThingTypeUID;
21
22 /**
23  * Defines common constants.
24  *
25  * @author Chris Carman - Initial contribution
26  */
27 public class MeteoBlueBindingConstants {
28
29     private static final String BINDING_ID = "meteoblue";
30
31     // List of all Thing Type UIDs
32     public static final ThingTypeUID THING_TYPE_WEATHER = new ThingTypeUID(BINDING_ID, "weather");
33     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
34
35     public static final Set<ThingTypeUID> BRIDGE_THING_TYPES_UIDS = Collections.singleton(THING_TYPE_BRIDGE);
36     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<>(Arrays.asList(THING_TYPE_WEATHER));
37
38     // Bridge configuration settings
39     public static final String APIKEY = "apiKey";
40 }