public class InlineQueryResultCachedGif extends Object implements InlineQueryResult
| Constructor and Description |
|---|
InlineQueryResultCachedGif() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCaption() |
String |
getGifFileId() |
String |
getId() |
InputMessageContent |
getInputMessageContent() |
InlineKeyboardMarkup |
getReplyMarkup() |
String |
getTitle() |
static String |
getType() |
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) |
InlineQueryResultCachedGif |
setCaption(String caption) |
InlineQueryResultCachedGif |
setGifFileId(String gifFileId) |
InlineQueryResultCachedGif |
setId(String id) |
InlineQueryResultCachedGif |
setInputMessageContent(InputMessageContent inputMessageContent) |
InlineQueryResultCachedGif |
setReplyMarkup(InlineKeyboardMarkup replyMarkup) |
InlineQueryResultCachedGif |
setTitle(String title) |
org.json.JSONObject |
toJson()
Convert to json object
|
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static String getType()
public String getId()
public InlineQueryResultCachedGif setId(String id)
public String getGifFileId()
public InlineQueryResultCachedGif setGifFileId(String gifFileId)
public String getTitle()
public InlineQueryResultCachedGif setTitle(String title)
public String getCaption()
public InlineQueryResultCachedGif setCaption(String caption)
public InputMessageContent getInputMessageContent()
public InlineQueryResultCachedGif setInputMessageContent(InputMessageContent inputMessageContent)
public InlineKeyboardMarkup getReplyMarkup()
public InlineQueryResultCachedGif setReplyMarkup(InlineKeyboardMarkup replyMarkup)
public void validate()
throws TelegramApiValidationException
Validablevalidate in interface ValidableTelegramApiValidationException - If any mandatory field is emptypublic org.json.JSONObject toJson()
IToJsonpublic void serialize(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers)
throws IOException
serialize in interface com.fasterxml.jackson.databind.JsonSerializableIOExceptionpublic void serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
throws IOException
serializeWithType in interface com.fasterxml.jackson.databind.JsonSerializableIOExceptionCopyright © 2016. All rights reserved.