public interface SentCallback<T extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
void |
onError(BotApiMethod<T> method,
org.json.JSONObject jsonObject)
Called when the request fails
|
void |
onException(BotApiMethod<T> method,
Exception exception)
Called when the http request throw an exception
|
void |
onResult(BotApiMethod<T> method,
org.json.JSONObject jsonObject)
Called when the request is successful
|
void onResult(BotApiMethod<T> method, org.json.JSONObject jsonObject)
method - Method executedjsonObject - Answer from Telegram servervoid onError(BotApiMethod<T> method, org.json.JSONObject jsonObject)
method - Method executedjsonObject - Answer from Telegram server (contains error information)void onException(BotApiMethod<T> method, Exception exception)
method - Method executedexception - Excepction thrownCopyright © 2016. All rights reserved.