Class 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 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.
        Specified by:
        read in class Reader<Field>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Field ResourceSet
      • firstPage

        public Page<Field> firstPage​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        firstPage in class Reader<Field>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Field ResourceSet
      • getPage

        public Page<Field> getPage​(String targetUrl,
                                   TwilioRestClient client)
        Retrieve the target page from the Twilio API.
        Specified by:
        getPage in class Reader<Field>
        Parameters:
        targetUrl - API-generated URL for the requested results page
        client - TwilioRestClient with which to make the request
        Returns:
        Field ResourceSet
      • nextPage

        public Page<Field> nextPage​(Page<Field> page,
                                    TwilioRestClient client)
        Retrieve the next page from the Twilio API.
        Specified by:
        nextPage in class Reader<Field>
        Parameters:
        page - current page
        client - TwilioRestClient with which to make the request
        Returns:
        Next Page
      • previousPage

        public Page<Field> previousPage​(Page<Field> page,
                                        TwilioRestClient client)
        Retrieve the previous page from the Twilio API.
        Specified by:
        previousPage in class Reader<Field>
        Parameters:
        page - current page
        client - TwilioRestClient with which to make the request
        Returns:
        Previous Page