Constructor and Description |
---|
EventReader(String pathWorkspaceSid)
Construct a new EventReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Event> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Event> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Event> |
nextPage(Page<Event> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Event> |
previousPage(Page<Event> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Event> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
EventReader |
setEndDate(org.joda.time.DateTime endDate)
The end_date.
|
EventReader |
setEventType(String eventType)
The event_type.
|
EventReader |
setMinutes(Integer minutes)
The minutes.
|
EventReader |
setReservationSid(String reservationSid)
The reservation_sid.
|
EventReader |
setStartDate(org.joda.time.DateTime startDate)
The start_date.
|
EventReader |
setTaskQueueSid(String taskQueueSid)
The task_queue_sid.
|
EventReader |
setTaskSid(String taskSid)
The task_sid.
|
EventReader |
setWorkerSid(String workerSid)
The worker_sid.
|
EventReader |
setWorkflowSid(String workflowSid)
The workflow_sid.
|
public EventReader(String pathWorkspaceSid)
pathWorkspaceSid
- The workspace_sidpublic EventReader setEndDate(org.joda.time.DateTime endDate)
endDate
- The end_datepublic EventReader setEventType(String eventType)
eventType
- The event_typepublic EventReader setMinutes(Integer minutes)
minutes
- The minutespublic EventReader setReservationSid(String reservationSid)
reservationSid
- The reservation_sidpublic EventReader setStartDate(org.joda.time.DateTime startDate)
startDate
- The start_datepublic EventReader setTaskQueueSid(String taskQueueSid)
taskQueueSid
- The task_queue_sidpublic EventReader setTaskSid(String taskSid)
taskSid
- The task_sidpublic EventReader setWorkerSid(String workerSid)
workerSid
- The worker_sidpublic EventReader setWorkflowSid(String workflowSid)
workflowSid
- The workflow_sidpublic ResourceSet<Event> read(TwilioRestClient client)
public Page<Event> firstPage(TwilioRestClient client)
public Page<Event> getPage(String targetUrl, TwilioRestClient client)
public Page<Event> nextPage(Page<Event> page, TwilioRestClient client)
public Page<Event> previousPage(Page<Event> page, TwilioRestClient client)
previousPage
in class Reader<Event>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.