Class MessageInteractionReader
- java.lang.Object
-
- com.twilio.base.Reader<MessageInteraction>
-
- com.twilio.rest.proxy.v1.service.session.participant.MessageInteractionReader
-
public class MessageInteractionReader extends Reader<MessageInteraction>
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
-
-
Constructor Summary
Constructors Constructor Description MessageInteractionReader(String pathServiceSid, String pathSessionSid, String pathParticipantSid)
Construct a new MessageInteractionReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<MessageInteraction>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<MessageInteraction>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<MessageInteraction>
nextPage(Page<MessageInteraction> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<MessageInteraction>
previousPage(Page<MessageInteraction> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<MessageInteraction>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Constructor Detail
-
MessageInteractionReader
public MessageInteractionReader(String pathServiceSid, String pathSessionSid, String pathParticipantSid)
Construct a new MessageInteractionReader.- Parameters:
pathServiceSid
- The SID of the Service to read the resource frompathSessionSid
- The SID of the parent SessionpathParticipantSid
- The SID of the Participant resource
-
-
Method Detail
-
read
public ResourceSet<MessageInteraction> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
read
in classReader<MessageInteraction>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- MessageInteraction ResourceSet
-
firstPage
public Page<MessageInteraction> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
firstPage
in classReader<MessageInteraction>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- MessageInteraction ResourceSet
-
getPage
public Page<MessageInteraction> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.- Specified by:
getPage
in classReader<MessageInteraction>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the request- Returns:
- MessageInteraction ResourceSet
-
nextPage
public Page<MessageInteraction> nextPage(Page<MessageInteraction> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.- Specified by:
nextPage
in classReader<MessageInteraction>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Next Page
-
previousPage
public Page<MessageInteraction> previousPage(Page<MessageInteraction> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<MessageInteraction>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-