public class InlineQueryResultCachedVoice extends Object implements InlineQueryResult
| Constructor and Description |
|---|
InlineQueryResultCachedVoice() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCaption() |
String |
getId() |
InputMessageContent |
getInputMessageContent() |
InlineKeyboardMarkup |
getReplyMarkup() |
String |
getTitle() |
static String |
getType() |
String |
getVoiceFileId() |
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) |
InlineQueryResultCachedVoice |
setCaption(String caption) |
InlineQueryResultCachedVoice |
setId(String id) |
InlineQueryResultCachedVoice |
setInputMessageContent(InputMessageContent inputMessageContent) |
InlineQueryResultCachedVoice |
setReplyMarkup(InlineKeyboardMarkup replyMarkup) |
InlineQueryResultCachedVoice |
setTitle(String title) |
InlineQueryResultCachedVoice |
setVoiceFileId(String voiceFileId) |
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 InlineQueryResultCachedVoice setId(String id)
public String getVoiceFileId()
public InlineQueryResultCachedVoice setVoiceFileId(String voiceFileId)
public String getTitle()
public InlineQueryResultCachedVoice setTitle(String title)
public InputMessageContent getInputMessageContent()
public InlineQueryResultCachedVoice setInputMessageContent(InputMessageContent inputMessageContent)
public InlineKeyboardMarkup getReplyMarkup()
public InlineQueryResultCachedVoice setReplyMarkup(InlineKeyboardMarkup replyMarkup)
public String getCaption()
public InlineQueryResultCachedVoice setCaption(String caption)
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.