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