Class MessagesGetHistoryAttachmentsQuery

    • Constructor Detail

      • MessagesGetHistoryAttachmentsQuery

        public MessagesGetHistoryAttachmentsQuery​(VkApiClient client,
                                                  UserActor actor,
                                                  int peerId)
        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
        peerId - value of "peer id" parameter.
      • MessagesGetHistoryAttachmentsQuery

        public MessagesGetHistoryAttachmentsQuery​(VkApiClient client,
                                                  GroupActor actor,
                                                  int peerId)
        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
        peerId - value of "peer id" parameter.
    • Method Detail

      • peerId

        protected MessagesGetHistoryAttachmentsQuery peerId​(int value)
        Peer ID. ", For group chat: '2000000000 + chat ID' , , For community: '-community ID'"
        Parameters:
        value - value of "peer id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • mediaType

        public MessagesGetHistoryAttachmentsQuery mediaType​(GetHistoryAttachmentsMediaType value)
        Type of media files to return: *'photo',, *'video',, *'audio',, *'doc',, *'link'.,*'market'.,*'wall'.,*'share'
        Parameters:
        value - value of "media type" parameter. By default photo.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • startFrom

        public MessagesGetHistoryAttachmentsQuery startFrom​(java.lang.String value)
        Message ID to start return results from.
        Parameters:
        value - value of "start from" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • count

        public MessagesGetHistoryAttachmentsQuery count​(java.lang.Integer value)
        Number of objects to return.
        Parameters:
        value - value of "count" parameter. Maximum is 200. Minimum is 0. By default 30.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • photoSizes

        public MessagesGetHistoryAttachmentsQuery photoSizes​(java.lang.Boolean value)
        '1' — to return photo sizes in a
        Parameters:
        value - value of "photo sizes" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • groupId

        public MessagesGetHistoryAttachmentsQuery groupId​(java.lang.Integer value)
        Group ID (for group messages with group access token)
        Parameters:
        value - value of "group id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • preserveOrder

        public MessagesGetHistoryAttachmentsQuery preserveOrder​(java.lang.Boolean value)
        Set preserve order
        Parameters:
        value - value of "preserve order" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • maxForwardsLevel

        public MessagesGetHistoryAttachmentsQuery maxForwardsLevel​(java.lang.Integer value)
        Set max forwards level
        Parameters:
        value - value of "max forwards level" parameter. Maximum is 45. Minimum is 0. By default 45.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fields

        public MessagesGetHistoryAttachmentsQuery fields​(Fields... value)
        fields Additional profile [vk.com/dev/fields|fields] to return.
        Parameters:
        value - value of "fields" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fields

        public MessagesGetHistoryAttachmentsQuery fields​(java.util.List<Fields> value)
        Additional profile [vk.com/dev/fields|fields] to return.
        Parameters:
        value - value of "fields" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.