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