Class Pin
java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<Pin.ResponseBody>
api.longpoll.bots.methods.impl.messages.Pin
Implements messages.pin method.
Pin the message
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds URL parameter to HTTP request.protected Class<Pin.ResponseBody>
Gets a class of VK API response.setConversationMessageId
(int conversationMessageId) setPeerId
(int peerId) Methods inherited from class api.longpoll.bots.methods.impl.VkMethod
execute, executeAsync, newRequestBody, setLang
-
Constructor Details
-
Pin
-
-
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<Pin.ResponseBody>
- Returns:
- a class of VK API response.
-
setPeerId
-
setConversationMessageId
-
addParam
Description copied from class:VkMethod
Adds URL parameter to HTTP request.- Overrides:
addParam
in classVkMethod<Pin.ResponseBody>
- Parameters:
key
- URL parameter key.value
- URL parameter value.- Returns:
- current instance.
-