Class GetById
java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<GetById.ResponseBody>
api.longpoll.bots.methods.impl.messages.GetById
Implements messages.getById method.
Returns messages by their IDs.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Response to messages.getById request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds URL parameter to HTTP request.protected Class<GetById.ResponseBody>
Gets a class of VK API response.setExtended
(boolean extended) setGroupId
(int groupId) setMessageIds
(Integer... messageIds) setMessageIds
(Iterable<Integer> messageIds) setPreviewLength
(int previewLength) Methods inherited from class api.longpoll.bots.methods.impl.VkMethod
execute, executeAsync, newRequestBody, setLang
-
Constructor Details
-
GetById
-
-
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<GetById.ResponseBody>
- Returns:
- a class of VK API response.
-
setMessageIds
-
setMessageIds
-
setPreviewLength
-
setExtended
-
setFields
-
setFields
-
setGroupId
-
addParam
Description copied from class:VkMethod
Adds URL parameter to HTTP request.- Overrides:
addParam
in classVkMethod<GetById.ResponseBody>
- Parameters:
key
- URL parameter key.value
- URL parameter value.- Returns:
- current instance.
-