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