Class VoipReader

    • Constructor Detail

      • VoipReader

        public VoipReader​(String pathCountryCode)
      • VoipReader

        public VoipReader​(String pathAccountSid,
                          String pathCountryCode)
    • Method Detail

      • setExcludeAllAddressRequired

        public VoipReader setExcludeAllAddressRequired​(Boolean excludeAllAddressRequired)
      • setExcludeLocalAddressRequired

        public VoipReader setExcludeLocalAddressRequired​(Boolean excludeLocalAddressRequired)
      • setExcludeForeignAddressRequired

        public VoipReader setExcludeForeignAddressRequired​(Boolean excludeForeignAddressRequired)
      • read

        public ResourceSet<Voip> read​(TwilioRestClient client)
        Description copied from class: Reader
        Execute a request using specified client.
        Specified by:
        read in class Reader<Voip>
        Parameters:
        client - client used to make request
        Returns:
        ResourceSet of objects
      • firstPage

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

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

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

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