Constructor and Description |
---|
ShortCodeReader(String pathServiceSid)
Construct a new ShortCodeReader.
|
Modifier and Type | Method and Description |
---|---|
Page<ShortCode> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<ShortCode> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<ShortCode> |
nextPage(Page<ShortCode> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<ShortCode> |
previousPage(Page<ShortCode> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<ShortCode> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
public ShortCodeReader(String pathServiceSid)
pathServiceSid
- The SID of the Service to read the resources frompublic ResourceSet<ShortCode> read(TwilioRestClient client)
public Page<ShortCode> firstPage(TwilioRestClient client)
public Page<ShortCode> getPage(String targetUrl, TwilioRestClient client)
public Page<ShortCode> nextPage(Page<ShortCode> page, TwilioRestClient client)
public Page<ShortCode> previousPage(Page<ShortCode> page, TwilioRestClient client)
previousPage
in class Reader<ShortCode>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.