Class TaskReader
- java.lang.Object
-
- com.twilio.base.Reader<Task>
-
- com.twilio.rest.autopilot.v1.assistant.TaskReader
-
-
Constructor Summary
Constructors Constructor Description TaskReader(String pathAssistantSid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Task>
firstPage(TwilioRestClient client)
Fetch the first page of resources using specified client.Page<Task>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page of resources.Page<Task>
nextPage(Page<Task> page, TwilioRestClient client)
Fetch the following page of resources using specified client.Page<Task>
previousPage(Page<Task> page, TwilioRestClient client)
Fetch the prior page of resources using specified client.ResourceSet<Task>
read(TwilioRestClient client)
Execute a request using specified client.TaskReader
setPageSize(Integer pageSize)
-
-
-
Constructor Detail
-
TaskReader
public TaskReader(String pathAssistantSid)
-
-
Method Detail
-
setPageSize
public TaskReader setPageSize(Integer pageSize)
-
read
public ResourceSet<Task> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.
-
firstPage
public Page<Task> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.
-
previousPage
public Page<Task> previousPage(Page<Task> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<Task>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<Task> nextPage(Page<Task> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.
-
getPage
public Page<Task> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.
-
-