Class MarketCreateCommentQuery

    • Constructor Detail

      • MarketCreateCommentQuery

        public MarketCreateCommentQuery​(VkApiClient client,
                                        UserActor actor,
                                        int ownerId,
                                        int itemId)
        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
        ownerId - value of "owner id" parameter.
        itemId - value of "item id" parameter. Minimum is 0.
    • Method Detail

      • ownerId

        protected MarketCreateCommentQuery ownerId​(int value)
        ID of an item owner community.
        Parameters:
        value - value of "owner id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • itemId

        protected MarketCreateCommentQuery itemId​(int value)
        Item ID.
        Parameters:
        value - value of "item id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • message

        public MarketCreateCommentQuery message​(java.lang.String value)
        Comment text (required if 'attachments' parameter is not specified)
        Parameters:
        value - value of "message" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fromGroup

        public MarketCreateCommentQuery fromGroup​(java.lang.Boolean value)
        '1' - comment will be published on behalf of a community, '0' - on behalf of a user (by default).
        Parameters:
        value - value of "from group" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • replyToComment

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

        public MarketCreateCommentQuery 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 MarketCreateCommentQuery guid​(java.lang.String value)
        Random value to avoid resending one comment.
        Parameters:
        value - value of "guid" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • attachments

        public MarketCreateCommentQuery attachments​(java.lang.String... value)
        attachments Comma-separated list of objects attached to a comment. The field is submitted the following way: , "'_,_'", , ' - media attachment type: "'photo' - photo, 'video' - video, 'audio' - audio, 'doc' - document", , '' - media owner id, '' - media attachment 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 MarketCreateCommentQuery attachments​(java.util.List<java.lang.String> value)
        Comma-separated list of objects attached to a comment. The field is submitted the following way: , "'_,_'", , ' - media attachment type: "'photo' - photo, 'video' - video, 'audio' - audio, 'doc' - document", , '' - media owner id, '' - media attachment 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.