Class RestoreComment
java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<IntegerResponseBody>
api.longpoll.bots.methods.impl.board.RestoreComment
Implements board.deleteComment method.
Restores a comment deleted from a topic on a community's discussion board.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds URL parameter to HTTP request.protected Class<IntegerResponseBody>
Gets a class of VK API response.setCommentId
(int commentId) Sets Comment ID.setGroupId
(int groupId) Sets Group ID.setTopicId
(int topicId) Sets Topic ID.Methods inherited from class api.longpoll.bots.methods.impl.VkMethod
execute, executeAsync, newRequestBody, setLang
-
Constructor Details
-
RestoreComment
-
-
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<IntegerResponseBody>
- Returns:
- a class of VK API response.
-
setGroupId
Sets Group ID.- Parameters:
groupId
- Group ID.- Returns:
- this instance.
-
setTopicId
Sets Topic ID.- Parameters:
topicId
- Topic ID.- Returns:
- this instance.
-
setCommentId
Sets Comment ID.- Parameters:
commentId
- Comment ID.- Returns:
- this instance.
-
addParam
Description copied from class:VkMethod
Adds URL parameter to HTTP request.- Overrides:
addParam
in classVkMethod<IntegerResponseBody>
- Parameters:
key
- URL parameter key.value
- URL parameter value.- Returns:
- current instance.
-