public class TelegramNotifier extends AbstractStatusChangeNotifier
| Constructor and Description |
|---|
TelegramNotifier(InstanceRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildUrl() |
protected reactor.core.publisher.Mono<Void> |
doNotify(InstanceEvent event,
Instance instance) |
String |
getApiUrl() |
String |
getAuthToken() |
String |
getChatId() |
String |
getParse_mode() |
protected String |
getText(InstanceEvent event,
Instance instance) |
boolean |
isDisableNotify() |
void |
setApiUrl(String apiUrl) |
void |
setAuthToken(String authToken) |
void |
setChatId(String chatId) |
void |
setDisableNotify(boolean disableNotify) |
void |
setMessage(String message) |
void |
setParse_mode(String parse_mode) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
void |
setRestTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder) |
getIgnoreChanges, getLastStatus, notify, setIgnoreChanges, shouldNotify, updateLastStatusisEnabled, setEnabledpublic TelegramNotifier(InstanceRepository repository)
protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
doNotify in class AbstractEventNotifierprotected String buildUrl()
protected String getText(InstanceEvent event, Instance instance)
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
public void setRestTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder)
public String getApiUrl()
public void setApiUrl(String apiUrl)
public String getChatId()
public void setChatId(String chatId)
public String getAuthToken()
public void setAuthToken(String authToken)
public boolean isDisableNotify()
public void setDisableNotify(boolean disableNotify)
public String getParse_mode()
public void setParse_mode(String parse_mode)
public void setMessage(String message)
Copyright © 2018 codecentric AG. All rights reserved.