]> git.basschouten.com Git - openhab-addons.git/blob
4f36e1d285ded8e8105d79c0ec846e83629bcc2e
[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.ntp.internal;
14
15 import java.util.Collections;
16 import java.util.Set;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
20
21 /**
22  * The {@link ntpBinding} class defines common constants, which are used across
23  * the whole binding.
24  *
25  * @author Marcel Verpaalen - Initial contribution
26  *
27  */
28 @NonNullByDefault
29 public class NtpBindingConstants {
30
31     public static final String BINDING_ID = "ntp";
32
33     // List of all Thing Type UIDs
34     public static final ThingTypeUID THING_TYPE_NTP = new ThingTypeUID(BINDING_ID, "ntp");
35
36     // List of all Channel ids
37     public static final String CHANNEL_DATE_TIME = "dateTime";
38     public static final String CHANNEL_STRING = "string";
39
40     // Custom Properties
41     public static final String PROPERTY_NTP_SERVER_HOST = "hostname";
42     public static final String PROPERTY_REFRESH_INTERVAL = "refreshInterval";
43     public static final String PROPERTY_REFRESH_NTP = "refreshNtp";
44     public static final String PROPERTY_TIMEZONE = "timeZone";
45     public static final String PROPERTY_LOCALE = "locale";
46     public static final String PROPERTY_DATE_TIME_FORMAT = "DateTimeFormat";
47     public static final String PROPERTY_NTP_SERVER_PORT = "serverPort";
48
49     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.singleton(THING_TYPE_NTP);
50 }