]> git.basschouten.com Git - openhab-addons.git/blob
fcba6af1f4cdbc4c386bc8f274c6adbb6e4a4247
[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.telegram.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link TelegramBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author Jens Runge - Initial contribution
25  */
26 @NonNullByDefault
27 public class TelegramBindingConstants {
28
29     private static final String BINDING_ID = "telegram";
30     public static final Set<String> PHOTO_EXTENSIONS = Set.of(".jpg", ".jpeg", ".png", ".gif", ".jpe", ".jif", ".jfif",
31             ".jfi", ".webp");
32
33     // List of all Thing Type UIDs
34     public static final ThingTypeUID TELEGRAM_THING = new ThingTypeUID(BINDING_ID, "telegramBot");
35
36     // List of all Channel ids
37     public static final String LASTMESSAGETEXT = "lastMessageText";
38     public static final String LASTMESSAGEURL = "lastMessageURL";
39     public static final String LASTMESSAGEDATE = "lastMessageDate";
40     public static final String LASTMESSAGENAME = "lastMessageName";
41     public static final String LASTMESSAGEUSERNAME = "lastMessageUsername";
42     public static final String CHATID = "chatId";
43     public static final String REPLYID = "replyId";
44     public static final String LONGPOLLINGTIME = "longPollingTime";
45     public static final String MESSAGEEVENT = "messageEvent";
46     public static final String MESSAGERAWEVENT = "messageRawEvent";
47     public static final String CALLBACKEVENT = "callbackEvent";
48     public static final String CALLBACKRAWEVENT = "callbackRawEvent";
49 }