Class RatePlanReader

    • Constructor Detail

      • RatePlanReader

        public RatePlanReader()
    • Method Detail

      • read

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

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

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