public class SmsCommandReader extends Reader<SmsCommand>
Constructor and Description |
---|
SmsCommandReader() |
Modifier and Type | Method and Description |
---|---|
Page<SmsCommand> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<SmsCommand> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<SmsCommand> |
nextPage(Page<SmsCommand> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<SmsCommand> |
previousPage(Page<SmsCommand> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<SmsCommand> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
SmsCommandReader |
setDirection(SmsCommand.Direction direction)
The direction of the SMS Command.
|
SmsCommandReader |
setSim(String sim)
The SID or unique name of the Sim resource that SMS Command was sent to or
from..
|
SmsCommandReader |
setStatus(SmsCommand.Status status)
The status of the SMS Command.
|
public SmsCommandReader setSim(String sim)
sim
- The SID or unique name of the Sim resource that SMS Command was
sent to or from.public SmsCommandReader setStatus(SmsCommand.Status status)
status
- The status of the SMS Commandpublic SmsCommandReader setDirection(SmsCommand.Direction direction)
direction
- The direction of the SMS Commandpublic ResourceSet<SmsCommand> read(TwilioRestClient client)
read
in class Reader<SmsCommand>
client
- TwilioRestClient with which to make the requestpublic Page<SmsCommand> firstPage(TwilioRestClient client)
firstPage
in class Reader<SmsCommand>
client
- TwilioRestClient with which to make the requestpublic Page<SmsCommand> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<SmsCommand>
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the requestpublic Page<SmsCommand> nextPage(Page<SmsCommand> page, TwilioRestClient client)
nextPage
in class Reader<SmsCommand>
page
- current pageclient
- TwilioRestClient with which to make the requestpublic Page<SmsCommand> previousPage(Page<SmsCommand> page, TwilioRestClient client)
previousPage
in class Reader<SmsCommand>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.