Package com.twilio.rest.conversations.v1
Class ConversationReader
- java.lang.Object
-
- com.twilio.base.Reader<Conversation>
-
- com.twilio.rest.conversations.v1.ConversationReader
-
public class ConversationReader extends Reader<Conversation>
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
-
-
Constructor Summary
Constructors Constructor Description ConversationReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Conversation>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Conversation>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Conversation>
nextPage(Page<Conversation> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Conversation>
previousPage(Page<Conversation> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Conversation>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Method Detail
-
read
public ResourceSet<Conversation> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
read
in classReader<Conversation>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- Conversation ResourceSet
-
firstPage
public Page<Conversation> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
firstPage
in classReader<Conversation>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- Conversation ResourceSet
-
getPage
public Page<Conversation> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.- Specified by:
getPage
in classReader<Conversation>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the request- Returns:
- Conversation ResourceSet
-
nextPage
public Page<Conversation> nextPage(Page<Conversation> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.- Specified by:
nextPage
in classReader<Conversation>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Next Page
-
previousPage
public Page<Conversation> previousPage(Page<Conversation> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Conversation>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-