Class AssetReader
- java.lang.Object
-
- com.twilio.base.Reader<Asset>
-
- com.twilio.rest.serverless.v1.service.AssetReader
-
-
Constructor Summary
Constructors Constructor Description AssetReader(String pathServiceSid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Asset>
firstPage(TwilioRestClient client)
Fetch the first page of resources using specified client.Page<Asset>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page of resources.Page<Asset>
nextPage(Page<Asset> page, TwilioRestClient client)
Fetch the following page of resources using specified client.Page<Asset>
previousPage(Page<Asset> page, TwilioRestClient client)
Fetch the prior page of resources using specified client.ResourceSet<Asset>
read(TwilioRestClient client)
Execute a request using specified client.AssetReader
setPageSize(Integer pageSize)
-
-
-
Constructor Detail
-
AssetReader
public AssetReader(String pathServiceSid)
-
-
Method Detail
-
setPageSize
public AssetReader setPageSize(Integer pageSize)
-
read
public ResourceSet<Asset> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.
-
firstPage
public Page<Asset> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.
-
previousPage
public Page<Asset> previousPage(Page<Asset> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<Asset>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<Asset> nextPage(Page<Asset> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.
-
getPage
public Page<Asset> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.
-
-