public class ReservationReader extends Reader<Reservation>
Constructor and Description |
---|
ReservationReader(String pathWorkspaceSid,
String pathTaskSid)
Construct a new ReservationReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Reservation> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Reservation> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Reservation> |
nextPage(Page<Reservation> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Reservation> |
previousPage(Page<Reservation> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Reservation> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
ReservationReader |
setReservationStatus(Reservation.Status reservationStatus)
Returns the list of reservations for a task with a specified
ReservationStatus.
|
public ReservationReader(String pathWorkspaceSid, String pathTaskSid)
pathWorkspaceSid
- The SID of the Workspace with the TaskReservation
resources to readpathTaskSid
- The SID of the reserved Task resource with the
TaskReservation resources to readpublic ReservationReader setReservationStatus(Reservation.Status reservationStatus)
reservationStatus
- Returns the list of reservations for a task with a
specified ReservationStatuspublic ResourceSet<Reservation> read(TwilioRestClient client)
read
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> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<Reservation>
targetUrl
- API-generated URL for the requested results pageclient
- 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 requestpublic Page<Reservation> previousPage(Page<Reservation> page, TwilioRestClient client)
previousPage
in class Reader<Reservation>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.