public class AnswerCallbackQuery extends BotApiMethod<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELD| Constructor and Description |
|---|
AnswerCallbackQuery() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
deserializeResponse(org.json.JSONObject answer)
Deserialize a json answer to the response type to a method
|
String |
getCallbackQueryId() |
String |
getPath()
Getter for method path (that is the same as method name)
|
Boolean |
getShowAlert() |
String |
getText() |
String |
getUrl() |
void |
serialize(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers) |
void |
serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
void |
setCallbackQueryId(String callbackQueryId) |
AnswerCallbackQuery |
setShowAlert(Boolean showAlert) |
AnswerCallbackQuery |
setText(String text) |
AnswerCallbackQuery |
setUrl(String url) |
org.json.JSONObject |
toJson()
Convert to json object
|
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getCallbackQueryId()
public void setCallbackQueryId(String callbackQueryId)
public String getText()
public AnswerCallbackQuery setText(String text)
public Boolean getShowAlert()
public AnswerCallbackQuery setShowAlert(Boolean showAlert)
public String getUrl()
public AnswerCallbackQuery setUrl(String url)
public org.json.JSONObject toJson()
IToJsonpublic String getPath()
BotApiMethodgetPath in class BotApiMethod<Boolean>public Boolean deserializeResponse(org.json.JSONObject answer)
BotApiMethoddeserializeResponse in class BotApiMethod<Boolean>answer - Json answer receivedpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptypublic void serialize(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers)
throws IOException
IOExceptionpublic void serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
throws IOException
IOExceptionCopyright © 2016. All rights reserved.