Class WallCreateCommentQuery

    • Constructor Detail

      • WallCreateCommentQuery

        public WallCreateCommentQuery​(VkApiClient client,
                                      UserActor actor,
                                      int postId)
        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
        postId - value of "post id" parameter. Minimum is 0.
      • WallCreateCommentQuery

        public WallCreateCommentQuery​(VkApiClient client,
                                      GroupActor actor,
                                      int postId)
        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
        postId - value of "post id" parameter. Minimum is 0.
    • Method Detail

      • ownerId

        public WallCreateCommentQuery ownerId​(java.lang.Integer value)
        User ID or community ID. Use a negative value to designate a community ID.
        Parameters:
        value - value of "owner id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • postId

        protected WallCreateCommentQuery postId​(int value)
        Post ID.
        Parameters:
        value - value of "post id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fromGroup

        public WallCreateCommentQuery fromGroup​(java.lang.Integer value)
        Group ID.
        Parameters:
        value - value of "from group" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • message

        public WallCreateCommentQuery 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.
      • replyToComment

        public WallCreateCommentQuery replyToComment​(java.lang.Integer value)
        ID of comment to reply.
        Parameters:
        value - value of "reply to comment" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • stickerId

        public WallCreateCommentQuery 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 WallCreateCommentQuery 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 WallCreateCommentQuery attachments​(java.lang.String... value)
        attachments (Required if 'message' is not set.) List of media objects attached to the comment, in the following format: "_,_", ' — Type of media ojbect: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, '' — ID of the media owner. '' — Media ID. For example: "photo100172_166443618,photo66748_265827614"
        Parameters:
        value - value of "attachments" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • attachments

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