public class GetGameHighScores extends BotApiMethod<ArrayList<GameHighScore>>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
GetGameHighScores() |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<GameHighScore> |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getChatId() |
String |
getInlineMessageId() |
Integer |
getMessageId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
Integer |
getUserId() |
GetGameHighScores |
setChatId(Long chatId) |
GetGameHighScores |
setChatId(String chatId) |
GetGameHighScores |
setInlineMessageId(String inlineMessageId) |
GetGameHighScores |
setMessageId(Integer messageId) |
GetGameHighScores |
setUserId(Integer userId) |
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 getInlineMessageId()
public Integer getUserId()
public GetGameHighScores setChatId(String chatId)
public GetGameHighScores setChatId(Long chatId)
public GetGameHighScores setMessageId(Integer messageId)
public GetGameHighScores setInlineMessageId(String inlineMessageId)
public GetGameHighScores setUserId(Integer userId)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<ArrayList<GameHighScore>>public ArrayList<GameHighScore> deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<ArrayList<GameHighScore>>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2016. All rights reserved.