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)
The ISO
language-country string that specifies the language used for the sample.
|
public SampleReader(String pathAssistantSid, String pathTaskSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
Task associated with the resources to readpathTaskSid
- The SID of the Task associated with the Sample resources
to readpublic SampleReader setLanguage(String language)
language
- The ISO language-country string that specifies the language
used for the samplepublic 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.