Class 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 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.
        Specified by:
        read in class Reader<Message>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Message ResourceSet
      • firstPage

        public Page<Message> firstPage​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        firstPage in class Reader<Message>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Message ResourceSet
      • getPage

        public Page<Message> getPage​(String targetUrl,
                                     TwilioRestClient client)
        Retrieve the target page from the Twilio API.
        Specified by:
        getPage in class Reader<Message>
        Parameters:
        targetUrl - API-generated URL for the requested results page
        client - TwilioRestClient with which to make the request
        Returns:
        Message ResourceSet