Commit 68eb64d23a692975e990dcc1b7c303cf917c8ef7
1 parent
2c012f58
Missing file added for telegram
Showing
1 changed file
with
31 additions
and
0 deletions
services/Telegram/src/main/java/de/bht/beuthbot/messenger/telegram/model/TelegramWebhookURL.java
0 → 100644
1 | +package de.bht.beuthbot.messenger.telegram.model; | ||
2 | + | ||
3 | +import de.bht.beuthbot.conf.Application; | ||
4 | +import de.bht.beuthbot.conf.Configuration; | ||
5 | + | ||
6 | +import javax.annotation.Resource; | ||
7 | + | ||
8 | +public class TelegramWebhookURL { | ||
9 | + /** BeuthBot Application Bean */ | ||
10 | + @Resource(lookup = "java:global/global/ApplicationBean") | ||
11 | + private Application application; | ||
12 | + | ||
13 | + private String url; | ||
14 | + | ||
15 | + public String getUrl() { | ||
16 | + return url; | ||
17 | + } | ||
18 | + | ||
19 | + public void setUrl(String url) { | ||
20 | + /* | ||
21 | + if(!botToken.equals(application.getConfiguration(Configuration.TELEGRAM_BOT_TOKEN))) { | ||
22 | + return; | ||
23 | + }*/ | ||
24 | + this.url = url; | ||
25 | + } | ||
26 | + | ||
27 | + @Override | ||
28 | + public String toString() { | ||
29 | + return url; | ||
30 | + } | ||
31 | +} |