Constructor and Description |
---|
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 |
setActorSid(String actorSid)
Only include events initiated by this Actor.
|
EventReader |
setEndDate(ZonedDateTime endDate)
Only include events that occurred on or before this date.
|
EventReader |
setEventType(String eventType)
Only include events of this Event
Type..
|
EventReader |
setResourceSid(String resourceSid)
Only include events that refer to this resource.
|
EventReader |
setSourceIpAddress(String sourceIpAddress)
Only include events that originated from this IP address.
|
EventReader |
setStartDate(ZonedDateTime startDate)
Only include events that occurred on or after this date.
|
public EventReader setActorSid(String actorSid)
actorSid
- Only include events initiated by this Actorpublic EventReader setEventType(String eventType)
eventType
- Only include events of this Event Typepublic EventReader setResourceSid(String resourceSid)
resourceSid
- Only include events that refer to this resourcepublic EventReader setSourceIpAddress(String sourceIpAddress)
sourceIpAddress
- Only include events that originated from this IP
addresspublic EventReader setStartDate(ZonedDateTime startDate)
startDate
- Only include events that occurred on or after this datepublic EventReader setEndDate(ZonedDateTime endDate)
endDate
- Only include events that occurred on or before this datepublic 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.