public class GetUserProfilePhotos extends BotApiMethod<UserProfilePhotos>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELD| Constructor and Description |
|---|
GetUserProfilePhotos() |
| Modifier and Type | Method and Description |
|---|---|
UserProfilePhotos |
deserializeResponse(org.json.JSONObject answer)
Deserialize a json answer to the response type to a method
|
Integer |
getLimit() |
Integer |
getOffset() |
String |
getPath()
Getter for method path (that is the same as method name)
|
Integer |
getUserId() |
void |
serialize(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers) |
void |
serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
GetUserProfilePhotos |
setLimit(Integer limit) |
GetUserProfilePhotos |
setOffset(Integer offset) |
GetUserProfilePhotos |
setUserId(Integer userId) |
org.json.JSONObject |
toJson()
Convert to json object
|
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 org.json.JSONObject toJson()
IToJsonpublic String getPath()
BotApiMethodgetPath in class BotApiMethod<UserProfilePhotos>public UserProfilePhotos deserializeResponse(org.json.JSONObject answer)
BotApiMethoddeserializeResponse in class BotApiMethod<UserProfilePhotos>answer - Json answer receivedpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptypublic void serialize(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers)
throws IOException
IOExceptionpublic void serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
throws IOException
IOExceptionCopyright © 2016. All rights reserved.