public class CreateComment extends VkMethod<CreateComment.ResponseBody>
Adds a comment to a post on a user wall or community wall.
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateComment.ResponseBody
Response to wall.createComment request.
|
| Constructor and Description |
|---|
CreateComment(String accessToken) |
| Modifier and Type | Method and Description |
|---|---|
CreateComment |
addParam(String key,
Object value)
Adds URL parameter to HTTP request.
|
protected Class<CreateComment.ResponseBody> |
getResponseClass()
Gets a class of VK API response.
|
String |
getUri()
Gets request URI.
|
CreateComment |
setAttachment(List<UploadedFile> attachments) |
CreateComment |
setAttachment(String attachment) |
CreateComment |
setAttachment(UploadedFile... attachments) |
CreateComment |
setFromGroupId(int fromGroupId) |
CreateComment |
setGuid(String guid) |
CreateComment |
setMessage(String message) |
CreateComment |
setOwnerId(int ownerId) |
CreateComment |
setPostId(int postId) |
CreateComment |
setReplyToComment(int replyToComment) |
CreateComment |
setStickerId(int stickerId) |
csv, execute, executeAsync, getAccessToken, getGson, getRequestBody, property, toStringpublic CreateComment(String accessToken)
public String getUri()
VkMethodgetUri in class VkMethod<CreateComment.ResponseBody>protected Class<CreateComment.ResponseBody> getResponseClass()
VkMethodgetResponseClass in class VkMethod<CreateComment.ResponseBody>public CreateComment setAttachment(UploadedFile... attachments)
public CreateComment setAttachment(List<UploadedFile> attachments)
public CreateComment setAttachment(String attachment)
public CreateComment setOwnerId(int ownerId)
public CreateComment setPostId(int postId)
public CreateComment setFromGroupId(int fromGroupId)
public CreateComment setMessage(String message)
public CreateComment setReplyToComment(int replyToComment)
public CreateComment setStickerId(int stickerId)
public CreateComment setGuid(String guid)
public CreateComment addParam(String key, Object value)
VkMethodaddParam in class VkMethod<CreateComment.ResponseBody>key - URL parameter key.value - URL parameter value.Copyright © 2022. All rights reserved.