|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fedorchuck.developers_notification.integrations.telegram.TelegramImpl
public class TelegramImpl
Provides sending messages via Telegram messenger
Author: Volodymyr Fedorchuk
| Constructor Summary | |
|---|---|
TelegramImpl()
|
|
| Method Summary | |
|---|---|
void |
analyseResponse(HttpResponse response)
Analyse response after sent message |
Task |
generateMessage(java.lang.String projectName,
java.lang.String description,
java.lang.Throwable throwable)
Generate message to send by specified params |
Task |
generateMessageFromLoggingEvent(java.lang.String projectName,
org.apache.log4j.spi.LoggingEvent event)
Generate Task to send by specified params |
DevelopersNotificationMessenger |
name()
Contains name of integration |
void |
sendMessage(Task message)
Provides sending messages to Telegram messenger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TelegramImpl()
| Method Detail |
|---|
public DevelopersNotificationMessenger name()
Integration
name in interface Integrationpublic void sendMessage(Task message)
sendMessage in interface Integrationmessage - to send
public Task generateMessage(java.lang.String projectName,
java.lang.String description,
java.lang.Throwable throwable)
generateMessage in interface IntegrationprojectName - where was method called. Can be nulldescription - about situation. Can be nullthrowable - which happened. Can be null
public Task generateMessageFromLoggingEvent(java.lang.String projectName,
org.apache.log4j.spi.LoggingEvent event)
Task to send by specified params
generateMessageFromLoggingEvent in interface IntegrationprojectName - where was method called. Can be nullevent - from logger
Task JSONpublic void analyseResponse(HttpResponse response)
See Also:: https://core.telegram.org/method/messages.sendMessage#return-errors
analyseResponse in interface Integrationresponse - response from http client
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||