]> git.basschouten.com Git - openhab-addons.git/blob
4f4d2b51f77acf084cca44c8e5fa530272e9285b
[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.dbquery.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * Common constants, which are used across the whole binding.
20  *
21  * @author Joan Pujol - Initial contribution
22  */
23 @NonNullByDefault
24 public class DBQueryBindingConstants {
25
26     private static final String BINDING_ID = "dbquery";
27
28     // List of all Thing Type UIDs
29     public static final ThingTypeUID THING_TYPE_INFLUXDB2_BRIDGE = new ThingTypeUID(BINDING_ID, "influxdb2");
30     public static final ThingTypeUID THING_TYPE_QUERY = new ThingTypeUID(BINDING_ID, "query");
31
32     // List of all Channel ids
33     public static final String CHANNEL_EXECUTE = "execute";
34
35     public static final String CHANNEL_PARAMETERS = "parameters";
36     public static final String CHANNEL_CORRECT = "correct";
37     public static final String TRIGGER_CHANNEL_CALCULATE_PARAMETERS = "calculateParameters";
38
39     public static final String RESULT_STRING_CHANNEL_TYPE = "result-channel-string";
40     public static final String RESULT_NUMBER_CHANNEL_TYPE = "result-channel-number";
41     public static final String RESULT_DATETIME_CHANNEL_TYPE = "result-channel-datetime";
42     public static final String RESULT_CONTACT_CHANNEL_TYPE = "result-channel-contact";
43     public static final String RESULT_SWITCH_CHANNEL_TYPE = "result-channel-switch";
44
45     private DBQueryBindingConstants() {
46     }
47 }