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