Class PayloadReader

    • Constructor Detail

      • PayloadReader

        public PayloadReader​(String pathReferenceSid,
                             String pathAddOnResultSid)
        Construct a new PayloadReader.
        Parameters:
        pathReferenceSid - The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs
        pathAddOnResultSid - The SID of the AddOnResult to which the payloads to read belongs
      • PayloadReader

        public PayloadReader​(String pathAccountSid,
                             String pathReferenceSid,
                             String pathAddOnResultSid)
        Construct a new PayloadReader.
        Parameters:
        pathAccountSid - The SID of the Account that created the resources to read
        pathReferenceSid - The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs
        pathAddOnResultSid - The SID of the AddOnResult to which the payloads to read belongs
    • Method Detail

      • read

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

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

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