public class PinChatMessage extends BotApiMethod<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
PinChatMessage() |
PinChatMessage(Long chatId,
Integer messageId) |
PinChatMessage(String chatId,
Integer messageId) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getChatId() |
Boolean |
getDisableNotification() |
Integer |
getMessageId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
PinChatMessage |
setChatId(Long chatId) |
PinChatMessage |
setChatId(String chatId) |
PinChatMessage |
setDisableNotification(Boolean disableNotification) |
PinChatMessage |
setMessageId(Integer messageId) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getChatId()
public PinChatMessage setChatId(String chatId)
public PinChatMessage setChatId(Long chatId)
public Integer getMessageId()
public PinChatMessage setMessageId(Integer messageId)
public Boolean getDisableNotification()
public PinChatMessage setDisableNotification(Boolean disableNotification)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Boolean>public Boolean deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Boolean>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2019. All rights reserved.