| Constructor and Description |
|---|
MessageReader(String pathServiceSid,
String pathChannelSid)
Construct a new MessageReader.
|
| Modifier and Type | Method and Description |
|---|---|
Page<Message> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Message> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Message> |
nextPage(Page<Message> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Message> |
previousPage(Page<Message> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Message> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
MessageReader |
setOrder(Message.OrderType order)
The order.
|
public MessageReader setOrder(Message.OrderType order)
order - The orderpublic ResourceSet<Message> read(TwilioRestClient client)
public Page<Message> firstPage(TwilioRestClient client)
public Page<Message> getPage(String targetUrl, TwilioRestClient client)
public Page<Message> nextPage(Page<Message> page, TwilioRestClient client)
public Page<Message> previousPage(Page<Message> page, TwilioRestClient client)
previousPage in class Reader<Message>page - current pageclient - TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.