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 read notifications of the specified log level.
|
NotificationReader |
setMessageDate(LocalDate messageDate)
Only show notifications for the specified date, formatted as `YYYY-MM-DD`.
|
NotificationReader |
setMessageDateAfter(LocalDate messageDateAfter)
Only show notifications for the specified date, formatted as `YYYY-MM-DD`.
|
NotificationReader |
setMessageDateBefore(LocalDate messageDateBefore)
Only show notifications for the specified date, formatted as `YYYY-MM-DD`.
|
public NotificationReader()
public NotificationReader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resources to
readpublic NotificationReader setLog(Integer log)
log
- Filter by log levelpublic NotificationReader setMessageDate(LocalDate messageDate)
messageDate
- Filter by datepublic NotificationReader setMessageDateBefore(LocalDate messageDateBefore)
messageDateBefore
- Filter by datepublic NotificationReader setMessageDateAfter(LocalDate messageDateAfter)
messageDateAfter
- 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 © 2019 Twilio, Inc. All Rights Reserved.