Class PayloadReader
- java.lang.Object
-
- com.twilio.base.Reader<Payload>
-
- com.twilio.rest.api.v2010.account.recording.addonresult.PayloadReader
-
-
Constructor Summary
Constructors Constructor Description PayloadReader(String pathReferenceSid, String pathAddOnResultSid)
Construct a new PayloadReader.PayloadReader(String pathAccountSid, String pathReferenceSid, String pathAddOnResultSid)
Construct a new PayloadReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Payload>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Payload>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Payload>
nextPage(Page<Payload> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Payload>
previousPage(Page<Payload> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Payload>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Constructor Detail
-
PayloadReader
public PayloadReader(String pathReferenceSid, String pathAddOnResultSid)
Construct a new PayloadReader.- Parameters:
pathReferenceSid
- The SID of the recording to which the AddOnResult resource that contains the payloads to read belongspathAddOnResultSid
- The SID of the AddOnResult to which the payloads to read belongs
-
PayloadReader
public PayloadReader(String pathAccountSid, String pathReferenceSid, String pathAddOnResultSid)
Construct a new PayloadReader.- Parameters:
pathAccountSid
- The SID of the Account that created the resources to readpathReferenceSid
- The SID of the recording to which the AddOnResult resource that contains the payloads to read belongspathAddOnResultSid
- The SID of the AddOnResult to which the payloads to read belongs
-
-
Method Detail
-
read
public ResourceSet<Payload> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
firstPage
public Page<Payload> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Payload> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Payload> nextPage(Page<Payload> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Payload> previousPage(Page<Payload> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Payload>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-