Class FieldReader
- java.lang.Object
-
- com.twilio.base.Reader<Field>
-
- com.twilio.rest.autopilot.v1.assistant.task.FieldReader
-
public class FieldReader extends Reader<Field>
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
-
-
Constructor Summary
Constructors Constructor Description FieldReader(String pathAssistantSid, String pathTaskSid)
Construct a new FieldReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Field>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Field>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Field>
nextPage(Page<Field> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Field>
previousPage(Page<Field> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Field>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Constructor Detail
-
FieldReader
public FieldReader(String pathAssistantSid, String pathTaskSid)
Construct a new FieldReader.- Parameters:
pathAssistantSid
- The SID of the Assistant that is the parent of the Task associated with the resources to read.pathTaskSid
- The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resources to read
-
-
Method Detail
-
read
public ResourceSet<Field> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
firstPage
public Page<Field> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Field> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Field> nextPage(Page<Field> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Field> previousPage(Page<Field> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Field>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-