public class SampleReader extends Reader<Sample>
Constructor and Description |
---|
SampleReader(String pathAssistantSid,
String pathTaskSid)
Construct a new SampleReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Sample> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Sample> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Sample> |
nextPage(Page<Sample> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Sample> |
previousPage(Page<Sample> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Sample> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
SampleReader |
setLanguage(String language)
An ISO language-country string of the sample..
|
public SampleReader setLanguage(String language)
language
- An ISO language-country string of the sample.public ResourceSet<Sample> read(TwilioRestClient client)
public Page<Sample> firstPage(TwilioRestClient client)
public Page<Sample> getPage(String targetUrl, TwilioRestClient client)
public Page<Sample> nextPage(Page<Sample> page, TwilioRestClient client)
public Page<Sample> previousPage(Page<Sample> page, TwilioRestClient client)
previousPage
in class Reader<Sample>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.