public class SetGameScore extends BotApiMethod<Serializable>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELD| Constructor and Description |
|---|
SetGameScore() |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
deserializeResponse(org.json.JSONObject answer)
Deserialize a json answer to the response type to a method
|
String |
getChatId() |
Boolean |
getEditMessage() |
String |
getInlineMessageId() |
Integer |
getMessageId() |
String |
getPath()
Getter for method path (that is the same as method name)
|
Integer |
getScore() |
Integer |
getUserId() |
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) |
SetGameScore |
setChatId(String chatId) |
SetGameScore |
setEditMessage(Boolean editMessage) |
SetGameScore |
setInlineMessageId(String inlineMessageId) |
SetGameScore |
setMessageId(Integer messageId) |
SetGameScore |
setScore(Integer score) |
SetGameScore |
setUserId(Integer userId) |
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 Integer getMessageId()
public String getInlineMessageId()
public Boolean getEditMessage()
public Integer getUserId()
public Integer getScore()
public SetGameScore setChatId(String chatId)
public SetGameScore setMessageId(Integer messageId)
public SetGameScore setInlineMessageId(String inlineMessageId)
public SetGameScore setEditMessage(Boolean editMessage)
public SetGameScore setUserId(Integer userId)
public SetGameScore setScore(Integer score)
public String getPath()
BotApiMethodgetPath in class BotApiMethod<Serializable>public Serializable deserializeResponse(org.json.JSONObject answer)
BotApiMethoddeserializeResponse in class BotApiMethod<Serializable>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
IOExceptionpublic org.json.JSONObject toJson()
IToJsonCopyright © 2016. All rights reserved.