Package com.twilio.rest.proxy.v1.service
Class PhoneNumberReader
- java.lang.Object
-
- com.twilio.base.Reader<PhoneNumber>
-
- com.twilio.rest.proxy.v1.service.PhoneNumberReader
-
public class PhoneNumberReader extends Reader<PhoneNumber>
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
-
-
Constructor Summary
Constructors Constructor Description PhoneNumberReader(String pathServiceSid)
Construct a new PhoneNumberReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<PhoneNumber>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<PhoneNumber>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<PhoneNumber>
nextPage(Page<PhoneNumber> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<PhoneNumber>
previousPage(Page<PhoneNumber> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<PhoneNumber>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Constructor Detail
-
PhoneNumberReader
public PhoneNumberReader(String pathServiceSid)
Construct a new PhoneNumberReader.- Parameters:
pathServiceSid
- The SID of the parent Service resource of the PhoneNumber resource to read
-
-
Method Detail
-
read
public ResourceSet<PhoneNumber> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
read
in classReader<PhoneNumber>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- PhoneNumber ResourceSet
-
firstPage
public Page<PhoneNumber> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
firstPage
in classReader<PhoneNumber>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- PhoneNumber ResourceSet
-
getPage
public Page<PhoneNumber> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.- Specified by:
getPage
in classReader<PhoneNumber>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the request- Returns:
- PhoneNumber ResourceSet
-
nextPage
public Page<PhoneNumber> nextPage(Page<PhoneNumber> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.- Specified by:
nextPage
in classReader<PhoneNumber>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Next Page
-
previousPage
public Page<PhoneNumber> previousPage(Page<PhoneNumber> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<PhoneNumber>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-