Class GetHistoryAttachments
java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<GetHistoryAttachments.ResponseBody>
api.longpoll.bots.methods.impl.messages.GetHistoryAttachments
Implements messages.getHistoryAttachments method.
Returns media files from the dialog or group chat.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Response to messages.getHistoryAttachments request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds URL parameter to HTTP request.protected Class<GetHistoryAttachments.ResponseBody>
Gets a class of VK API response.setCount
(int count) setGroupId
(int groupId) setMaxForwardsLevel
(int maxForwardsLevel) setMediaType
(String mediaType) setPeerId
(int peerId) setPhotoSizes
(boolean photoSizes) setPreserveOrder
(boolean preserveOrder) setStartFrom
(String startFrom) Methods inherited from class api.longpoll.bots.methods.impl.VkMethod
execute, executeAsync, newRequestBody, setLang
-
Constructor Details
-
GetHistoryAttachments
-
-
Method Details
-
getResponseClass
Description copied from class:VkMethod
Gets a class of VK API response. This value is used during deserialization of received JSON.- Specified by:
getResponseClass
in classVkMethod<GetHistoryAttachments.ResponseBody>
- Returns:
- a class of VK API response.
-
setPeerId
-
setMediaType
-
setStartFrom
-
setCount
-
setPhotoSizes
-
setFields
-
setFields
-
setGroupId
-
setPreserveOrder
-
setMaxForwardsLevel
-
addParam
Description copied from class:VkMethod
Adds URL parameter to HTTP request.- Overrides:
addParam
in classVkMethod<GetHistoryAttachments.ResponseBody>
- Parameters:
key
- URL parameter key.value
- URL parameter value.- Returns:
- current instance.
-