public class NotificationReader extends Reader<Notification>
| Constructor and Description |
|---|
NotificationReader()
Construct a new NotificationReader.
|
NotificationReader(String pathAccountSid)
Construct a new NotificationReader.
|
| Modifier and Type | Method and Description |
|---|---|
Page<Notification> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Notification> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Notification> |
nextPage(Page<Notification> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Notification> |
previousPage(Page<Notification> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Notification> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
NotificationReader |
setLog(Integer log)
Only show notifications for this log level.
|
NotificationReader |
setMessageDate(org.joda.time.LocalDate absoluteMessageDate)
Only show notifications for this date.
|
NotificationReader |
setMessageDate(com.google.common.collect.Range<org.joda.time.LocalDate> rangeMessageDate)
Only show notifications for this date.
|
public NotificationReader()
public NotificationReader(String pathAccountSid)
pathAccountSid - The account_sidpublic NotificationReader setLog(Integer log)
log - Filter by log levelpublic NotificationReader setMessageDate(org.joda.time.LocalDate absoluteMessageDate)
absoluteMessageDate - Filter by datepublic NotificationReader setMessageDate(com.google.common.collect.Range<org.joda.time.LocalDate> rangeMessageDate)
rangeMessageDate - Filter by datepublic ResourceSet<Notification> read(TwilioRestClient client)
read in class Reader<Notification>client - TwilioRestClient with which to make the requestpublic Page<Notification> firstPage(TwilioRestClient client)
firstPage in class Reader<Notification>client - TwilioRestClient with which to make the requestpublic Page<Notification> getPage(String targetUrl, TwilioRestClient client)
getPage in class Reader<Notification>targetUrl - API-generated URL for the requested results pageclient - TwilioRestClient with which to make the requestpublic Page<Notification> nextPage(Page<Notification> page, TwilioRestClient client)
nextPage in class Reader<Notification>page - current pageclient - TwilioRestClient with which to make the requestpublic Page<Notification> previousPage(Page<Notification> page, TwilioRestClient client)
previousPage in class Reader<Notification>page - current pageclient - TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.