public class StopPoll extends BotApiMethod<Poll>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
StopPoll() |
StopPoll(Long chatId,
Integer messageId) |
StopPoll(String chatId,
Integer messageId) |
| Modifier and Type | Method and Description |
|---|---|
Poll |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
boolean |
equals(Object o) |
String |
getChatId() |
Integer |
getMessageId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
int |
hashCode() |
StopPoll |
setChatId(Long chatId) |
StopPoll |
setChatId(String chatId) |
StopPoll |
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 Integer getMessageId()
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Poll>public Poll deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Poll>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2019. All rights reserved.