Constructor and Description |
---|
RoomReader() |
Modifier and Type | Method and 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(ZonedDateTime dateCreatedAfter)
Read only rooms that started on or after this date, given as `YYYY-MM-DD`..
|
RoomReader |
setDateCreatedBefore(ZonedDateTime dateCreatedBefore)
Read only rooms that started before this date, given as `YYYY-MM-DD`..
|
RoomReader |
setStatus(Room.RoomStatus status)
Read only the rooms with this status.
|
RoomReader |
setUniqueName(String uniqueName)
Read only rooms with the this `unique_name`..
|
public RoomReader setStatus(Room.RoomStatus status)
status
- Read only the rooms with this statuspublic RoomReader setUniqueName(String uniqueName)
uniqueName
- Read only rooms with this unique_namepublic RoomReader setDateCreatedAfter(ZonedDateTime dateCreatedAfter)
dateCreatedAfter
- Read only rooms that started on or after this date,
given as YYYY-MM-DDpublic RoomReader setDateCreatedBefore(ZonedDateTime dateCreatedBefore)
dateCreatedBefore
- Read only rooms that started before this date,
given as YYYY-MM-DDpublic ResourceSet<Room> read(TwilioRestClient client)
public Page<Room> firstPage(TwilioRestClient client)
public Page<Room> getPage(String targetUrl, TwilioRestClient client)
public Page<Room> nextPage(Page<Room> page, TwilioRestClient client)
public Page<Room> previousPage(Page<Room> page, TwilioRestClient client)
previousPage
in class Reader<Room>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.