public class SmsMessageReader extends Reader<SmsMessage>
| Constructor and Description |
|---|
SmsMessageReader(String accountSid)
Construct a new SmsMessageReader.
|
| Modifier and Type | Method and Description |
|---|---|
SmsMessageReader |
byDateSent(String dateSent)
The date_sent.
|
SmsMessageReader |
byFrom(PhoneNumber from)
The from.
|
SmsMessageReader |
byTo(PhoneNumber to)
The to.
|
ResourceSet<SmsMessage> |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<SmsMessage> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<SmsMessage> |
nextPage(Page<SmsMessage> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
public SmsMessageReader(String accountSid)
accountSid - The account_sidpublic SmsMessageReader byTo(PhoneNumber to)
to - The topublic SmsMessageReader byFrom(PhoneNumber from)
from - The frompublic SmsMessageReader byDateSent(String dateSent)
dateSent - The date_sentpublic ResourceSet<SmsMessage> execute(TwilioRestClient client)
execute in class Reader<SmsMessage>client - TwilioRestClient with which to make the requestpublic Page<SmsMessage> firstPage(TwilioRestClient client)
firstPage in class Reader<SmsMessage>client - TwilioRestClient with which to make the requestpublic Page<SmsMessage> nextPage(Page<SmsMessage> page, TwilioRestClient client)
nextPage in class Reader<SmsMessage>page - current pageclient - TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.