]> git.basschouten.com Git - openhab-addons.git/blob
da285007e8633ef0cfdba3b5b12333dc26cda24c
[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.List;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * The {@link TelegramConfiguration} class contains fields mapping thing configuration parameters.
22  *
23  * @author Jens Runge - Initial contribution
24  */
25 @NonNullByDefault
26 public class TelegramConfiguration {
27
28     /**
29      * Sample configuration parameter. Replace with your own.
30      */
31     private @Nullable String botUsername;
32     private @Nullable String botToken;
33     private @Nullable List<String> chatIds;
34     private @Nullable String proxyHost;
35     private @Nullable Integer proxyPort;
36     private @Nullable String proxyType;
37     private String parseMode = "";
38     private int longPollingTime;
39
40     public @Nullable String getBotUsername() {
41         return botUsername;
42     }
43
44     public @Nullable String getBotToken() {
45         return botToken;
46     }
47
48     public @Nullable List<String> getChatIds() {
49         return chatIds;
50     }
51
52     public String getParseMode() {
53         return parseMode;
54     }
55
56     public @Nullable String getProxyHost() {
57         return proxyHost;
58     }
59
60     public @Nullable Integer getProxyPort() {
61         return proxyPort;
62     }
63
64     public @Nullable String getProxyType() {
65         return proxyType;
66     }
67
68     public int getLongPollingTime() {
69         return longPollingTime;
70     }
71 }