Class StreamMessageCreator


  • public class StreamMessageCreator
    extends Creator<StreamMessage>
    PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
    • Constructor Detail

      • StreamMessageCreator

        public StreamMessageCreator​(String pathServiceSid,
                                    String pathStreamSid,
                                    Map<String,​Object> data)
        Construct a new StreamMessageCreator.
        Parameters:
        pathServiceSid - The service_sid
        pathStreamSid - The stream_sid
        data - Stream Message body.
    • Method Detail

      • create

        public StreamMessage create​(TwilioRestClient client)
        Make the request to the Twilio API to perform the create.
        Specified by:
        create in class Creator<StreamMessage>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Created StreamMessage