public class EditMessageCaption extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELD| Constructor and Description |
|---|
EditMessageCaption() |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserializeResponse(org.json.JSONObject answer)
Deserialize a json answer to the response type to a method
|
String |
getCaption() |
String |
getChatId() |
String |
getInlineMessageId() |
Integer |
getMessageId() |
String |
getPath()
Getter for method path (that is the same as method name)
|
InlineKeyboardMarkup |
getReplyMarkup() |
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) |
EditMessageCaption |
setCaption(String caption) |
EditMessageCaption |
setChatId(String chatId) |
EditMessageCaption |
setInlineMessageId(String inlineMessageId) |
EditMessageCaption |
setMessageId(Integer messageId) |
EditMessageCaption |
setReplyMarkup(InlineKeyboardMarkup replyMarkup) |
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 getChatId()
public EditMessageCaption setChatId(String chatId)
public Integer getMessageId()
public EditMessageCaption setMessageId(Integer messageId)
public String getInlineMessageId()
public EditMessageCaption setInlineMessageId(String inlineMessageId)
public String getCaption()
public EditMessageCaption setCaption(String caption)
public InlineKeyboardMarkup getReplyMarkup()
public EditMessageCaption setReplyMarkup(InlineKeyboardMarkup replyMarkup)
public org.json.JSONObject toJson()
IToJsonpublic String getPath()
BotApiMethodgetPath in class BotApiMethod<Message>public Message deserializeResponse(org.json.JSONObject answer)
BotApiMethoddeserializeResponse in class BotApiMethod<Message>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.