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(ZonedDateTime endDate)
Only include Events that occurred on or before this date, specified in GMT as
an ISO 8601 date-time..
|
EventReader |
setEventType(String eventType)
The type of Events to read.
|
EventReader |
setMinutes(Integer minutes)
The period of events to read in minutes.
|
EventReader |
setReservationSid(String reservationSid)
The SID of the Reservation with the Events to read.
|
EventReader |
setSid(String sid)
The SID of the Event resource to read..
|
EventReader |
setStartDate(ZonedDateTime startDate)
Only include Events from on or after this date and time, specified in ISO 8601 format.
|
EventReader |
setTaskChannel(String taskChannel)
The TaskChannel with the Events to read.
|
EventReader |
setTaskQueueSid(String taskQueueSid)
The SID of the TaskQueue with the Events to read.
|
EventReader |
setTaskSid(String taskSid)
The SID of the Task with the Events to read.
|
EventReader |
setWorkerSid(String workerSid)
The SID of the Worker with the Events to read.
|
EventReader |
setWorkflowSid(String workflowSid)
The SID of the Workflow with the Events to read.
|
public EventReader(String pathWorkspaceSid)
pathWorkspaceSid
- The SID of the Workspace with the Events to readpublic EventReader setEndDate(ZonedDateTime endDate)
endDate
- Only include usage that occurred on or before this datepublic EventReader setEventType(String eventType)
eventType
- The type of Events to readpublic EventReader setMinutes(Integer minutes)
minutes
- The period of events to read in minutespublic EventReader setReservationSid(String reservationSid)
reservationSid
- The SID of the Reservation with the Events to readpublic EventReader setStartDate(ZonedDateTime startDate)
startDate
- Only include Events from on or after this datepublic EventReader setTaskQueueSid(String taskQueueSid)
taskQueueSid
- The SID of the TaskQueue with the Events to readpublic EventReader setTaskSid(String taskSid)
taskSid
- The SID of the Task with the Events to readpublic EventReader setWorkerSid(String workerSid)
workerSid
- The SID of the Worker with the Events to readpublic EventReader setWorkflowSid(String workflowSid)
workflowSid
- The SID of the Worker with the Events to readpublic EventReader setTaskChannel(String taskChannel)
taskChannel
- The TaskChannel with the Events to readpublic EventReader setSid(String sid)
sid
- The unique string that identifies the resourcepublic 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 © 2019 Twilio, Inc. All Rights Reserved.