public class ReservationReader extends Reader<Reservation>
| Constructor and Description |
|---|
ReservationReader(String pathWorkspaceSid,
String pathWorkerSid)
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)
The reservation_status.
|
public ReservationReader setReservationStatus(Reservation.Status reservationStatus)
reservationStatus - The reservation_statuspublic 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 © 2016 Twilio, Inc. All Rights Reserved.