public class PhoneNumberReader extends Reader<PhoneNumber>
Constructor and Description |
---|
PhoneNumberReader(String pathServiceSid)
Construct a new PhoneNumberReader.
|
Modifier and Type | Method and 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.
|
public PhoneNumberReader(String pathServiceSid)
pathServiceSid
- The SID of the parent Service resource of the
PhoneNumber resource to readpublic ResourceSet<PhoneNumber> read(TwilioRestClient client)
read
in class Reader<PhoneNumber>
client
- TwilioRestClient with which to make the requestpublic Page<PhoneNumber> firstPage(TwilioRestClient client)
firstPage
in class Reader<PhoneNumber>
client
- TwilioRestClient with which to make the requestpublic Page<PhoneNumber> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<PhoneNumber>
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the requestpublic Page<PhoneNumber> nextPage(Page<PhoneNumber> page, TwilioRestClient client)
nextPage
in class Reader<PhoneNumber>
page
- current pageclient
- TwilioRestClient with which to make the requestpublic Page<PhoneNumber> previousPage(Page<PhoneNumber> page, TwilioRestClient client)
previousPage
in class Reader<PhoneNumber>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.