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