Class PhotosCreateCommentQuery

    • Constructor Detail

      • PhotosCreateCommentQuery

        public PhotosCreateCommentQuery​(VkApiClient client,
                                        UserActor actor,
                                        int photoId)
        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
        photoId - value of "photo id" parameter.
    • Method Detail

      • ownerId

        public PhotosCreateCommentQuery ownerId​(java.lang.Integer value)
        ID of the user or community that owns the photo.
        Parameters:
        value - value of "owner id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • photoId

        protected PhotosCreateCommentQuery photoId​(int value)
        Photo ID.
        Parameters:
        value - value of "photo id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • message

        public PhotosCreateCommentQuery message​(java.lang.String value)
        Comment text.
        Parameters:
        value - value of "message" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fromGroup

        public PhotosCreateCommentQuery fromGroup​(java.lang.Boolean value)
        '1' — to post a comment from the community
        Parameters:
        value - value of "from group" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • replyToComment

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

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

        public PhotosCreateCommentQuery accessKey​(java.lang.String value)
        Set access key
        Parameters:
        value - value of "access key" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • guid

        public PhotosCreateCommentQuery guid​(java.lang.String value)
        Set guid
        Parameters:
        value - value of "guid" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • attachments

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