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