Package com.twilio.rest.video.v1.room
Class RoomRecordingReader
- java.lang.Object
-
- com.twilio.base.Reader<RoomRecording>
-
- com.twilio.rest.video.v1.room.RoomRecordingReader
-
public class RoomRecordingReader extends Reader<RoomRecording>
-
-
Constructor Summary
Constructors Constructor Description RoomRecordingReader(String pathRoomSid)
Construct a new RoomRecordingReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<RoomRecording>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<RoomRecording>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<RoomRecording>
nextPage(Page<RoomRecording> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<RoomRecording>
previousPage(Page<RoomRecording> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<RoomRecording>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.RoomRecordingReader
setDateCreatedAfter(org.joda.time.DateTime dateCreatedAfter)
The date_created_after.RoomRecordingReader
setDateCreatedBefore(org.joda.time.DateTime dateCreatedBefore)
The date_created_before.RoomRecordingReader
setSourceSid(String sourceSid)
The source_sid.RoomRecordingReader
setStatus(RoomRecording.Status status)
The status.
-
-
-
Constructor Detail
-
RoomRecordingReader
public RoomRecordingReader(String pathRoomSid)
Construct a new RoomRecordingReader.- Parameters:
pathRoomSid
- The room_sid
-
-
Method Detail
-
setStatus
public RoomRecordingReader setStatus(RoomRecording.Status status)
The status.- Parameters:
status
- The status- Returns:
- this
-
setSourceSid
public RoomRecordingReader setSourceSid(String sourceSid)
The source_sid.- Parameters:
sourceSid
- The source_sid- Returns:
- this
-
setDateCreatedAfter
public RoomRecordingReader setDateCreatedAfter(org.joda.time.DateTime dateCreatedAfter)
The date_created_after.- Parameters:
dateCreatedAfter
- The date_created_after- Returns:
- this
-
setDateCreatedBefore
public RoomRecordingReader setDateCreatedBefore(org.joda.time.DateTime dateCreatedBefore)
The date_created_before.- Parameters:
dateCreatedBefore
- The date_created_before- Returns:
- this
-
read
public ResourceSet<RoomRecording> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
read
in classReader<RoomRecording>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- RoomRecording ResourceSet
-
firstPage
public Page<RoomRecording> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
firstPage
in classReader<RoomRecording>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- RoomRecording ResourceSet
-
getPage
public Page<RoomRecording> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.- Specified by:
getPage
in classReader<RoomRecording>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the request- Returns:
- RoomRecording ResourceSet
-
nextPage
public Page<RoomRecording> nextPage(Page<RoomRecording> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.- Specified by:
nextPage
in classReader<RoomRecording>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Next Page
-
previousPage
public Page<RoomRecording> previousPage(Page<RoomRecording> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<RoomRecording>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-