public class EnvironmentReader extends Reader<Environment>
Constructor and Description |
---|
EnvironmentReader(String pathServiceSid)
Construct a new EnvironmentReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Environment> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Environment> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Environment> |
nextPage(Page<Environment> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Environment> |
previousPage(Page<Environment> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Environment> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
public EnvironmentReader(String pathServiceSid)
pathServiceSid
- The SID of the Service to read the Environment
resources frompublic ResourceSet<Environment> read(TwilioRestClient client)
read
in class Reader<Environment>
client
- TwilioRestClient with which to make the requestpublic Page<Environment> firstPage(TwilioRestClient client)
firstPage
in class Reader<Environment>
client
- TwilioRestClient with which to make the requestpublic Page<Environment> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<Environment>
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the requestpublic Page<Environment> nextPage(Page<Environment> page, TwilioRestClient client)
nextPage
in class Reader<Environment>
page
- current pageclient
- TwilioRestClient with which to make the requestpublic Page<Environment> previousPage(Page<Environment> page, TwilioRestClient client)
previousPage
in class Reader<Environment>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.