Class GetLongPollServer
java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<GetLongPollServer.ResponseBody>
api.longpoll.bots.methods.impl.groups.GetLongPollServer
Implements groups.getLongPollServer method.
Returns data for Bots Long Poll API connection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Response to groups.getLongPollServer request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds URL parameter to HTTP request.protected Class<GetLongPollServer.ResponseBody>
Gets a class of VK API response.setGroupId
(int groupId) Methods inherited from class api.longpoll.bots.methods.impl.VkMethod
execute, executeAsync, newRequestBody, setLang
-
Constructor Details
-
GetLongPollServer
-
-
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<GetLongPollServer.ResponseBody>
- Returns:
- a class of VK API response.
-
setGroupId
-
addParam
Description copied from class:VkMethod
Adds URL parameter to HTTP request.- Overrides:
addParam
in classVkMethod<GetLongPollServer.ResponseBody>
- Parameters:
key
- URL parameter key.value
- URL parameter value.- Returns:
- current instance.
-