public class GetChatMemberCount extends BotApiMethod<Integer>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
GetChatMemberCount() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
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)
|
GetChatMemberCount |
setChatId(Long chatId) |
GetChatMemberCount |
setChatId(String chatId) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getChatId()
public GetChatMemberCount setChatId(String chatId)
public GetChatMemberCount setChatId(Long chatId)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Integer>public Integer deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Integer>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2018. All rights reserved.