public class SyncListItemReader extends Reader<SyncListItem>
| Constructor and Description |
|---|
SyncListItemReader(String pathServiceSid,
String pathListSid)
Construct a new SyncListItemReader.
|
| Modifier and Type | Method and Description |
|---|---|
Page<SyncListItem> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<SyncListItem> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<SyncListItem> |
nextPage(Page<SyncListItem> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<SyncListItem> |
previousPage(Page<SyncListItem> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<SyncListItem> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
SyncListItemReader |
setBounds(SyncListItem.QueryFromBoundType bounds)
The bounds.
|
SyncListItemReader |
setFrom(String from)
The from.
|
SyncListItemReader |
setOrder(SyncListItem.QueryResultOrder order)
The order.
|
public SyncListItemReader setOrder(SyncListItem.QueryResultOrder order)
order - The orderpublic SyncListItemReader setFrom(String from)
from - The frompublic SyncListItemReader setBounds(SyncListItem.QueryFromBoundType bounds)
bounds - The boundspublic ResourceSet<SyncListItem> read(TwilioRestClient client)
read in class Reader<SyncListItem>client - TwilioRestClient with which to make the requestpublic Page<SyncListItem> firstPage(TwilioRestClient client)
firstPage in class Reader<SyncListItem>client - TwilioRestClient with which to make the requestpublic Page<SyncListItem> getPage(String targetUrl, TwilioRestClient client)
getPage in class Reader<SyncListItem>targetUrl - API-generated URL for the requested results pageclient - TwilioRestClient with which to make the requestpublic Page<SyncListItem> nextPage(Page<SyncListItem> page, TwilioRestClient client)
nextPage in class Reader<SyncListItem>page - current pageclient - TwilioRestClient with which to make the requestpublic Page<SyncListItem> previousPage(Page<SyncListItem> page, TwilioRestClient client)
previousPage in class Reader<SyncListItem>page - current pageclient - TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.