Class TrunkReader

    • Constructor Detail

      • TrunkReader

        public TrunkReader()
    • Method Detail

      • read

        public ResourceSet<Trunk> read​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        read in class Reader<Trunk>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Trunk ResourceSet
      • firstPage

        public Page<Trunk> firstPage​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        firstPage in class Reader<Trunk>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Trunk ResourceSet
      • getPage

        public Page<Trunk> getPage​(String targetUrl,
                                   TwilioRestClient client)
        Retrieve the target page from the Twilio API.
        Specified by:
        getPage in class Reader<Trunk>
        Parameters:
        targetUrl - API-generated URL for the requested results page
        client - TwilioRestClient with which to make the request
        Returns:
        Trunk ResourceSet
      • nextPage

        public Page<Trunk> nextPage​(Page<Trunk> page,
                                    TwilioRestClient client)
        Retrieve the next page from the Twilio API.
        Specified by:
        nextPage in class Reader<Trunk>
        Parameters:
        page - current page
        client - TwilioRestClient with which to make the request
        Returns:
        Next Page
      • previousPage

        public Page<Trunk> previousPage​(Page<Trunk> page,
                                        TwilioRestClient client)
        Retrieve the previous page from the Twilio API.
        Specified by:
        previousPage in class Reader<Trunk>
        Parameters:
        page - current page
        client - TwilioRestClient with which to make the request
        Returns:
        Previous Page