Class RecordingReader

    • Constructor Detail

      • RecordingReader

        public RecordingReader()
        Construct a new RecordingReader.
      • RecordingReader

        public RecordingReader​(String pathAccountSid)
        Construct a new RecordingReader.
        Parameters:
        pathAccountSid - The SID of the Account that created the resources to read
    • Method Detail

      • setDateCreated

        public RecordingReader setDateCreated​(org.joda.time.DateTime absoluteDateCreated)
        The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date..
        Parameters:
        absoluteDateCreated - The `YYYY-MM-DD` value of the resources to read
        Returns:
        this
      • setDateCreated

        public RecordingReader setDateCreated​(com.google.common.collect.Range<org.joda.time.DateTime> rangeDateCreated)
        The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date..
        Parameters:
        rangeDateCreated - The `YYYY-MM-DD` value of the resources to read
        Returns:
        this
      • setCallSid

        public RecordingReader setCallSid​(String callSid)
        The [Call](https://www.twilio.com/docs/api/voice/call) SID of the resources to read..
        Parameters:
        callSid - The Call SID of the resources to read
        Returns:
        this
      • setConferenceSid

        public RecordingReader setConferenceSid​(String conferenceSid)
        The Conference SID that identifies the conference associated with the recording to read..
        Parameters:
        conferenceSid - Read by unique Conference SID for the recording
        Returns:
        this
      • read

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

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

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