Class GetShortLink
java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<GetShortLink.ResponseBody>
api.longpoll.bots.methods.impl.utils.GetShortLink
Implements utils.getShortLink method.
Allows to receive a link shortened via vk.cc.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResponse to utils.getShortLink request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds URL parameter to HTTP request.protected Class<GetShortLink.ResponseBody>Gets a class of VK API response.setPrivate(boolean isPrivate) Methods inherited from class api.longpoll.bots.methods.impl.VkMethod
execute, executeAsync, newRequestBody, setLang
-
Constructor Details
-
GetShortLink
-
-
Method Details
-
setUrl
-
getResponseClass
Description copied from class:VkMethodGets a class of VK API response. This value is used during deserialization of received JSON.- Specified by:
getResponseClassin classVkMethod<GetShortLink.ResponseBody>- Returns:
- a class of VK API response.
-
setPrivate
-
addParam
Description copied from class:VkMethodAdds URL parameter to HTTP request.- Overrides:
addParamin classVkMethod<GetShortLink.ResponseBody>- Parameters:
key- URL parameter key.value- URL parameter value.- Returns:
- current instance.
-