Class AssistantReader

    • Constructor Detail

      • AssistantReader

        public AssistantReader()
    • Method Detail

      • firstPage

        public Page<Assistant> firstPage​(TwilioRestClient client)
        Description copied from class: Reader
        Fetch the first page of resources using specified client.
        Specified by:
        firstPage in class Reader<Assistant>
        Parameters:
        client - client used to fetch
        Returns:
        Page containing the first pageSize of resources
      • previousPage

        public Page<Assistant> previousPage​(Page<Assistant> page,
                                            TwilioRestClient client)
        Description copied from class: Reader
        Fetch the prior page of resources using specified client.
        Specified by:
        previousPage in class Reader<Assistant>
        Parameters:
        page - current page of resources
        client - client used to fetch
        Returns:
        Page containing the previous pageSize of resources
      • nextPage

        public Page<Assistant> nextPage​(Page<Assistant> page,
                                        TwilioRestClient client)
        Description copied from class: Reader
        Fetch the following page of resources using specified client.
        Specified by:
        nextPage in class Reader<Assistant>
        Parameters:
        page - current page of resources
        client - client used to fetch
        Returns:
        Page containing the next pageSize of resources
      • getPage

        public Page<Assistant> getPage​(String targetUrl,
                                       TwilioRestClient client)
        Description copied from class: Reader
        Retrieve the target page of resources.
        Specified by:
        getPage in class Reader<Assistant>
        Parameters:
        targetUrl - API-generated URL for the requested results page
        client - client used to fetch
        Returns:
        Page containing the target pageSize of resources