Constructor and Description |
---|
MessageUpdater(String pathServiceSid,
String pathChannelSid,
String pathSid)
Construct a new MessageUpdater.
|
Modifier and Type | Method and Description |
---|---|
MessageUpdater |
setAttributes(String attributes)
A valid JSON string that contains application-specific data..
|
MessageUpdater |
setBody(String body)
The message to send to the channel.
|
Message |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public MessageUpdater(String pathServiceSid, String pathChannelSid, String pathSid)
pathServiceSid
- The SID of the Service to update the resource frompathChannelSid
- he unique ID of the Channel the message belongs topathSid
- The unique string that identifies the resourcepublic MessageUpdater setBody(String body)
body
- The message to send to the channelpublic MessageUpdater setAttributes(String attributes)
attributes
- A valid JSON string that contains application-specific datapublic Message update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.