Class BoardCreateCommentQuery

    • Constructor Detail

      • BoardCreateCommentQuery

        public BoardCreateCommentQuery​(VkApiClient client,
                                       UserActor actor,
                                       int groupId,
                                       int topicId)
        Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
        Parameters:
        client - VK API client
        actor - actor with access token
        groupId - value of "group id" parameter. Minimum is 1.
        topicId - value of "topic id" parameter. Minimum is 0.
    • Method Detail

      • groupId

        protected BoardCreateCommentQuery groupId​(int value)
        ID of the community that owns the discussion board.
        Parameters:
        value - value of "group id" parameter. Minimum is 1.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • topicId

        protected BoardCreateCommentQuery topicId​(int value)
        ID of the topic to be commented on.
        Parameters:
        value - value of "topic id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • message

        public BoardCreateCommentQuery message​(java.lang.String value)
        (Required if 'attachments' is not set.) Text of the comment.
        Parameters:
        value - value of "message" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fromGroup

        public BoardCreateCommentQuery fromGroup​(java.lang.Boolean value)
        '1' — to post the comment as by the community, '0' — to post the comment as by the user (default)
        Parameters:
        value - value of "from group" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • stickerId

        public BoardCreateCommentQuery stickerId​(java.lang.Integer value)
        Sticker ID.
        Parameters:
        value - value of "sticker id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • guid

        public BoardCreateCommentQuery guid​(java.lang.String value)
        Unique identifier to avoid repeated comments.
        Parameters:
        value - value of "guid" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • attachments

        public BoardCreateCommentQuery attachments​(java.lang.String... value)
        attachments (Required if 'text' is not set.) List of media objects attached to the comment, in the following format: "_,_", ' — Type of media object: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, '' — ID of the media owner. '' — Media ID.
        Parameters:
        value - value of "attachments" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • attachments

        public BoardCreateCommentQuery attachments​(java.util.List<java.lang.String> value)
        (Required if 'text' is not set.) List of media objects attached to the comment, in the following format: "_,_", ' — Type of media object: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, '' — ID of the media owner. '' — Media ID.
        Parameters:
        value - value of "attachments" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.