public class GetUpdates extends BotApiMethod<ArrayList<Update>>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
GetUpdates() |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<Update> |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
List<String> |
getAllowedUpdates() |
Integer |
getLimit() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
Integer |
getOffset() |
Integer |
getTimeout() |
GetUpdates |
setAllowedUpdates(List<String> allowedUpdates) |
GetUpdates |
setLimit(Integer limit) |
GetUpdates |
setOffset(Integer offset) |
GetUpdates |
setTimeout(Integer timeout) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public Integer getOffset()
public GetUpdates setOffset(Integer offset)
public Integer getLimit()
public GetUpdates setLimit(Integer limit)
public Integer getTimeout()
public GetUpdates setTimeout(Integer timeout)
public GetUpdates setAllowedUpdates(List<String> allowedUpdates)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<ArrayList<Update>>public ArrayList<Update> deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<ArrayList<Update>>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2019. All rights reserved.