Package com.vk.api.sdk.actions
Class Board
- java.lang.Object
-
- com.vk.api.sdk.client.AbstractAction
-
- com.vk.api.sdk.actions.Board
-
public class Board extends AbstractAction
List of Board methods
-
-
Constructor Summary
Constructors Constructor Description Board(VkApiClient client)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoardAddTopicQueryaddTopic(UserActor actor, int groupId, java.lang.String title)Creates a new topic on a community's discussion board.BoardCloseTopicQuerycloseTopic(UserActor actor, int groupId, int topicId)Closes a topic on a community's discussion board so that comments cannot be posted.BoardCreateCommentQuerycreateComment(UserActor actor, int groupId, int topicId)Adds a comment on a topic on a community's discussion board.BoardDeleteCommentQuerydeleteComment(GroupActor actor, int groupId, int topicId, int commentId)Deletes a comment on a topic on a community's discussion board.BoardDeleteCommentQuerydeleteComment(UserActor actor, int groupId, int topicId, int commentId)Deletes a comment on a topic on a community's discussion board.BoardDeleteTopicQuerydeleteTopic(UserActor actor, int groupId, int topicId)Deletes a topic from a community's discussion board.BoardEditCommentQueryeditComment(UserActor actor, int groupId, int topicId, int commentId)Edits a comment on a topic on a community's discussion board.BoardEditTopicQueryeditTopic(UserActor actor, int groupId, int topicId, java.lang.String title)Edits the title of a topic on a community's discussion board.BoardFixTopicQueryfixTopic(UserActor actor, int groupId, int topicId)Pins a topic (fixes its place) to the top of a community's discussion board.BoardGetCommentsQuerygetComments(ServiceActor actor, int groupId, int topicId)Returns a list of comments on a topic on a community's discussion board.BoardGetCommentsQuerygetComments(UserActor actor, int groupId, int topicId)Returns a list of comments on a topic on a community's discussion board.BoardGetCommentsQueryWithExtendedgetCommentsExtended(ServiceActor actor, int groupId, int topicId)Returns a list of comments on a topic on a community's discussion board.BoardGetCommentsQueryWithExtendedgetCommentsExtended(UserActor actor, int groupId, int topicId)Returns a list of comments on a topic on a community's discussion board.BoardGetTopicsQuerygetTopics(ServiceActor actor, int groupId)Returns a list of topics on a community's discussion board.BoardGetTopicsQuerygetTopics(UserActor actor, int groupId)Returns a list of topics on a community's discussion board.BoardGetTopicsQueryWithExtendedgetTopicsExtended(ServiceActor actor, int groupId)Returns a list of topics on a community's discussion board.BoardGetTopicsQueryWithExtendedgetTopicsExtended(UserActor actor, int groupId)Returns a list of topics on a community's discussion board.BoardOpenTopicQueryopenTopic(UserActor actor, int groupId, int topicId)Re-opens a previously closed topic on a community's discussion board.BoardRestoreCommentQueryrestoreComment(GroupActor actor, int groupId, int topicId, int commentId)Restores a comment deleted from a topic on a community's discussion board.BoardRestoreCommentQueryrestoreComment(UserActor actor, int groupId, int topicId, int commentId)Restores a comment deleted from a topic on a community's discussion board.BoardUnfixTopicQueryunfixTopic(UserActor actor, int groupId, int topicId)Unpins a pinned topic from the top of a community's discussion board.-
Methods inherited from class com.vk.api.sdk.client.AbstractAction
getClient
-
-
-
-
Constructor Detail
-
Board
public Board(VkApiClient client)
Constructor- Parameters:
client- vk api client
-
-
Method Detail
-
addTopic
public BoardAddTopicQuery addTopic(UserActor actor, int groupId, java.lang.String title)
Creates a new topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.title- Topic title.- Returns:
- query
-
closeTopic
public BoardCloseTopicQuery closeTopic(UserActor actor, int groupId, int topicId)
Closes a topic on a community's discussion board so that comments cannot be posted.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.- Returns:
- query
-
createComment
public BoardCreateCommentQuery createComment(UserActor actor, int groupId, int topicId)
Adds a comment on a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- ID of the topic to be commented on.- Returns:
- query
-
deleteComment
public BoardDeleteCommentQuery deleteComment(UserActor actor, int groupId, int topicId, int commentId)
Deletes a comment on a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.commentId- Comment ID.- Returns:
- query
-
deleteComment
public BoardDeleteCommentQuery deleteComment(GroupActor actor, int groupId, int topicId, int commentId)
Deletes a comment on a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.commentId- Comment ID.- Returns:
- query
-
deleteTopic
public BoardDeleteTopicQuery deleteTopic(UserActor actor, int groupId, int topicId)
Deletes a topic from a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.- Returns:
- query
-
editComment
public BoardEditCommentQuery editComment(UserActor actor, int groupId, int topicId, int commentId)
Edits a comment on a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.commentId- ID of the comment on the topic.- Returns:
- query
-
editTopic
public BoardEditTopicQuery editTopic(UserActor actor, int groupId, int topicId, java.lang.String title)
Edits the title of a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.title- New title of the topic.- Returns:
- query
-
fixTopic
public BoardFixTopicQuery fixTopic(UserActor actor, int groupId, int topicId)
Pins a topic (fixes its place) to the top of a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.- Returns:
- query
-
getComments
public BoardGetCommentsQuery getComments(UserActor actor, int groupId, int topicId)
Returns a list of comments on a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.- Returns:
- query
-
getComments
public BoardGetCommentsQuery getComments(ServiceActor actor, int groupId, int topicId)
Returns a list of comments on a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.- Returns:
- query
-
getCommentsExtended
public BoardGetCommentsQueryWithExtended getCommentsExtended(UserActor actor, int groupId, int topicId)
Returns a list of comments on a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.- Returns:
- query
-
getCommentsExtended
public BoardGetCommentsQueryWithExtended getCommentsExtended(ServiceActor actor, int groupId, int topicId)
Returns a list of comments on a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.- Returns:
- query
-
getTopicsExtended
public BoardGetTopicsQueryWithExtended getTopicsExtended(UserActor actor, int groupId)
Returns a list of topics on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.- Returns:
- query
-
getTopicsExtended
public BoardGetTopicsQueryWithExtended getTopicsExtended(ServiceActor actor, int groupId)
Returns a list of topics on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.- Returns:
- query
-
getTopics
public BoardGetTopicsQuery getTopics(UserActor actor, int groupId)
Returns a list of topics on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.- Returns:
- query
-
getTopics
public BoardGetTopicsQuery getTopics(ServiceActor actor, int groupId)
Returns a list of topics on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.- Returns:
- query
-
openTopic
public BoardOpenTopicQuery openTopic(UserActor actor, int groupId, int topicId)
Re-opens a previously closed topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.- Returns:
- query
-
restoreComment
public BoardRestoreCommentQuery restoreComment(UserActor actor, int groupId, int topicId, int commentId)
Restores a comment deleted from a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.commentId- Comment ID.- Returns:
- query
-
restoreComment
public BoardRestoreCommentQuery restoreComment(GroupActor actor, int groupId, int topicId, int commentId)
Restores a comment deleted from a topic on a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.commentId- Comment ID.- Returns:
- query
-
unfixTopic
public BoardUnfixTopicQuery unfixTopic(UserActor actor, int groupId, int topicId)
Unpins a pinned topic from the top of a community's discussion board.- Parameters:
actor- vk actorgroupId- ID of the community that owns the discussion board.topicId- Topic ID.- Returns:
- query
-
-