Package com.twilio.rest.video.v1
Class RoomReader
- java.lang.Object
-
- com.twilio.base.Reader<Room>
-
- com.twilio.rest.video.v1.RoomReader
-
-
Constructor Summary
Constructors Constructor Description RoomReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Room>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Room>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Room>
nextPage(Page<Room> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Room>
previousPage(Page<Room> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Room>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.RoomReader
setDateCreatedAfter(org.joda.time.DateTime dateCreatedAfter)
Only show Rooms that started on or after this date, given as `YYYY-MM-DD`..RoomReader
setDateCreatedBefore(org.joda.time.DateTime dateCreatedBefore)
Only show Rooms that started before this date, given as `YYYY-MM-DD`..RoomReader
setStatus(Room.RoomStatus status)
Only show Rooms with the given status: `in-progress` (default), or `completed`.RoomReader
setUniqueName(String uniqueName)
Only show Rooms with the provided Name..
-
-
-
Method Detail
-
setStatus
public RoomReader setStatus(Room.RoomStatus status)
Only show Rooms with the given status: `in-progress` (default), or `completed`.- Parameters:
status
- Only show Rooms with the given status.- Returns:
- this
-
setUniqueName
public RoomReader setUniqueName(String uniqueName)
Only show Rooms with the provided Name..- Parameters:
uniqueName
- Only show Rooms with the provided Name.- Returns:
- this
-
setDateCreatedAfter
public RoomReader setDateCreatedAfter(org.joda.time.DateTime dateCreatedAfter)
Only show Rooms that started on or after this date, given as `YYYY-MM-DD`..- Parameters:
dateCreatedAfter
- Only show Rooms that started on or after this date, given as YYYY-MM-DD.- Returns:
- this
-
setDateCreatedBefore
public RoomReader setDateCreatedBefore(org.joda.time.DateTime dateCreatedBefore)
Only show Rooms that started before this date, given as `YYYY-MM-DD`..- Parameters:
dateCreatedBefore
- Only show Rooms that started before this date, given as YYYY-MM-DD.- Returns:
- this
-
read
public ResourceSet<Room> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
firstPage
public Page<Room> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Room> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Room> nextPage(Page<Room> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Room> previousPage(Page<Room> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Room>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-