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