Class Board

    • 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - 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 actor
        groupId - ID of the community that owns the discussion board.
        topicId - Topic ID.
        Returns:
        query