Class FactorReader


  • public class FactorReader
    extends Reader<Factor>
    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

      • FactorReader

        public FactorReader​(String pathServiceSid,
                            String pathIdentity)
        Construct a new FactorReader.
        Parameters:
        pathServiceSid - Service Sid.
        pathIdentity - Unique identity of the Entity
    • Method Detail

      • read

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

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

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

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

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