Class GetUserProfilePhotos
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<T>
-
- org.telegram.telegrambots.meta.api.methods.BotApiMethod<UserProfilePhotos>
-
- org.telegram.telegrambots.meta.api.methods.GetUserProfilePhotos
-
- All Implemented Interfaces:
Validable
public class GetUserProfilePhotos extends BotApiMethod<UserProfilePhotos>
- Version:
- 1.0 Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
- Author:
- Ruben Bermudez
-
-
Field Summary
Fields Modifier and Type Field Description static String
PATH
-
Fields inherited from class org.telegram.telegrambots.meta.api.methods.BotApiMethod
METHOD_FIELD
-
Fields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER
-
-
Constructor Summary
Constructors Constructor Description GetUserProfilePhotos()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserProfilePhotos
deserializeResponse(String answer)
Deserialize a json answer to the response type to a methodInteger
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
-
-
-
Field Detail
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserId
public Integer getUserId()
-
setUserId
public GetUserProfilePhotos setUserId(Integer userId)
-
getOffset
public Integer getOffset()
-
setOffset
public GetUserProfilePhotos setOffset(Integer offset)
-
getLimit
public Integer getLimit()
-
setLimit
public GetUserProfilePhotos setLimit(Integer limit)
-
getMethod
public String getMethod()
Description copied from class:BotApiMethod
Getter for method path (that is the same as method name)- Specified by:
getMethod
in classBotApiMethod<UserProfilePhotos>
- Returns:
- Method path
-
deserializeResponse
public UserProfilePhotos deserializeResponse(String answer) throws TelegramApiRequestException
Description copied from class:PartialBotApiMethod
Deserialize a json answer to the response type to a method- Specified by:
deserializeResponse
in classPartialBotApiMethod<UserProfilePhotos>
- Parameters:
answer
- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-
validate
public void validate() throws TelegramApiValidationException
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
-