Class MessageReader
- java.lang.Object
-
- com.twilio.base.Reader<Message>
-
- com.twilio.rest.messaging.v1.session.MessageReader
-
public class MessageReader extends Reader<Message>
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 MessageReader(String pathSessionSid)
Construct a new MessageReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Message>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Message>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Message>
nextPage(Page<Message> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Message>
previousPage(Page<Message> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Message>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Constructor Detail
-
MessageReader
public MessageReader(String pathSessionSid)
Construct a new MessageReader.- Parameters:
pathSessionSid
- The unique id of the Session for this message.
-
-
Method Detail
-
read
public ResourceSet<Message> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
firstPage
public Page<Message> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Message> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Message> nextPage(Page<Message> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Message> previousPage(Page<Message> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Message>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-