public class ReservationReader extends Reader<Reservation>
Constructor and Description |
---|
ReservationReader(String workspaceSid,
String taskSid)
Construct a new ReservationReader.
|
Modifier and Type | Method and Description |
---|---|
ReservationReader |
byAssignmentStatus(String assignmentStatus)
The assignment_status.
|
ReservationReader |
byReservationStatus(String reservationStatus)
The reservation_status.
|
ReservationReader |
byStatus(String status)
The status.
|
ResourceSet<Reservation> |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Reservation> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Reservation> |
nextPage(Page<Reservation> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
public ReservationReader byStatus(String status)
status
- The statuspublic ReservationReader byAssignmentStatus(String assignmentStatus)
assignmentStatus
- The assignment_statuspublic ReservationReader byReservationStatus(String reservationStatus)
reservationStatus
- The reservation_statuspublic ResourceSet<Reservation> execute(TwilioRestClient client)
execute
in class Reader<Reservation>
client
- TwilioRestClient with which to make the requestpublic Page<Reservation> firstPage(TwilioRestClient client)
firstPage
in class Reader<Reservation>
client
- TwilioRestClient with which to make the requestpublic Page<Reservation> nextPage(Page<Reservation> page, TwilioRestClient client)
nextPage
in class Reader<Reservation>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.