Class CreateComment
java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<CreateComment.ResponseBody>
api.longpoll.bots.methods.impl.wall.CreateComment
Implements wall.createComment method.
Adds a comment to a post on a user wall or community wall.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Response to wall.createComment request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds URL parameter to HTTP request.protected Class<CreateComment.ResponseBody>
Gets a class of VK API response.setAttachment
(UploadedFile... attachments) setAttachment
(Iterable<UploadedFile> attachments) setAttachment
(String attachment) setFromGroupId
(int fromGroupId) setMessage
(String message) setOwnerId
(int ownerId) setPostId
(int postId) setReplyToComment
(int replyToComment) setStickerId
(int stickerId) Methods inherited from class api.longpoll.bots.methods.impl.VkMethod
execute, executeAsync, newRequestBody, setLang
-
Constructor Details
-
CreateComment
-
-
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<CreateComment.ResponseBody>
- Returns:
- a class of VK API response.
-
setAttachment
-
setAttachment
-
setAttachment
-
setOwnerId
-
setPostId
-
setFromGroupId
-
setMessage
-
setReplyToComment
-
setStickerId
-
setGuid
-
addParam
Description copied from class:VkMethod
Adds URL parameter to HTTP request.- Overrides:
addParam
in classVkMethod<CreateComment.ResponseBody>
- Parameters:
key
- URL parameter key.value
- URL parameter value.- Returns:
- current instance.
-