public class KickChatMember extends BotApiMethod<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
KickChatMember() |
KickChatMember(Long chatId,
Integer userId) |
KickChatMember(String chatId,
Integer userId) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
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 |
getUntilDate() |
Integer |
getUserId() |
KickChatMember |
setChatId(Long chatId) |
KickChatMember |
setChatId(String chatId) |
KickChatMember |
setUntilDate(Integer untilDate) |
KickChatMember |
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 KickChatMember setChatId(String chatId)
public KickChatMember setChatId(Long chatId)
public Integer getUserId()
public KickChatMember setUserId(Integer userId)
public Integer getUntilDate()
public KickChatMember setUntilDate(Integer untilDate)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Boolean>public Boolean deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Boolean>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2018. All rights reserved.