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