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