2 * Copyright (c) 2010-2023 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.onebusaway.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link OneBusAwayBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Shawn Wilsher - Initial contribution
25 public class OneBusAwayBindingConstants {
27 public static final String BINDING_ID = "onebusaway";
30 public static final ThingTypeUID THING_TYPE_API = new ThingTypeUID(BINDING_ID, "api");
31 public static final ThingTypeUID THING_TYPE_ROUTE = new ThingTypeUID(BINDING_ID, "route");
32 public static final ThingTypeUID THING_TYPE_STOP = new ThingTypeUID(BINDING_ID, "stop");
35 public static final String CHANNEL_ID_ARRIVAL = "arrival";
36 public static final String CHANNEL_ID_DEPARTURE = "departure";
37 public static final String CHANNEL_ID_UPDATE = "update";
40 public static final String EVENT_ARRIVAL = "ARRIVAL";
41 public static final String EVENT_DEPARTURE = "DEPARTURE";
44 public static final String EVENT_CHANNEL_ID_ARRIVAL = "arrivalDeparture#event";
47 public static final String CHANNEL_CONFIG_OFFSET = "offset";
50 public static final String API_CONFIG_API_KEY = "apiKey";
51 public static final String API_CONFIG_API_SERVER = "apiServer";
54 public static final String ROUTE_CONFIG_ROUTE_ID = "routeId";
57 public static final String STOP_CONFIG_ID = "stopId";
58 public static final String STOP_CONFIG_INTERVAL = "interval";
61 public static final String ROUTE_PROPERTY_HEADSIGN = "headsign";
62 public static final String ROUTE_PROPERTY_LONG_NAME = "longName";
63 public static final String ROUTE_PROPERTY_SHORT_NAME = "shortName";