Class RecordingReader
- java.lang.Object
-
- com.twilio.base.Reader<Recording>
-
- com.twilio.rest.api.v2010.account.RecordingReader
-
-
Constructor Summary
Constructors Constructor Description RecordingReader()
Construct a new RecordingReader.RecordingReader(String pathAccountSid)
Construct a new RecordingReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Recording>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Recording>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Recording>
nextPage(Page<Recording> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Recording>
previousPage(Page<Recording> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Recording>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.RecordingReader
setCallSid(String callSid)
The [Call](https://www.twilio.com/docs/api/voice/call) SID of the resources to read..RecordingReader
setConferenceSid(String conferenceSid)
The Conference SID that identifies the conference associated with the recording to read..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.RecordingReader
setDateCreated(org.joda.time.DateTime absoluteDateCreated)
The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read.
-
-
-
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.
-
firstPage
public Page<Recording> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Recording> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Recording> nextPage(Page<Recording> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Recording> previousPage(Page<Recording> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Recording>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-