public class NotificationReader extends Reader<Notification>
| Constructor and Description |
|---|
NotificationReader(String accountSid)
Construct a new NotificationReader.
|
| Modifier and Type | Method and Description |
|---|---|
NotificationReader |
byLog(Integer log)
Only show notifications for this log level.
|
NotificationReader |
byMessageDate(String messageDate)
Only show notifications for this date.
|
ResourceSet<Notification> |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Notification> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Notification> |
nextPage(Page<Notification> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
public NotificationReader(String accountSid)
accountSid - The account_sidpublic NotificationReader byLog(Integer log)
log - Filter by log levelpublic NotificationReader byMessageDate(String messageDate)
messageDate - Filter by datepublic ResourceSet<Notification> execute(TwilioRestClient client)
execute 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> nextPage(Page<Notification> page, TwilioRestClient client)
nextPage in class Reader<Notification>page - current pageclient - TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.