public class Message extends NextGenInstanceResource<TwilioIPMessagingClient>
| Constructor and Description |
|---|
Message(TwilioIPMessagingClient client,
Map<String,Object> properties) |
Message(TwilioIPMessagingClient client,
String serviceSid,
String channelSid,
String sid) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Deletes the message
|
String |
getAccountSid()
The account sid that created this message
|
String |
getBody()
The body of the message
|
Calendar |
getDateCreated()
The date when this message was created
|
Calendar |
getDateUpdated()
The date when this message was updated
|
String |
getFrom()
The origination of this message
|
Integer |
getIndex()
Returns the index of this message in the Channel
|
String |
getServiceSid()
The service sid that is associated to this message
|
String |
getSid()
The unique identifier for this message
|
String |
getTo()
The destination of this message
|
String |
getUrl()
Absolute url of this user
|
Boolean |
isWasEdited()
True iff the message was ever edited
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic Message(TwilioIPMessagingClient client, Map<String,Object> properties)
public Message(TwilioIPMessagingClient client, String serviceSid, String channelSid, String sid)
public String getSid()
public String getAccountSid()
public String getServiceSid()
public String getTo()
public String getFrom()
public Boolean isWasEdited()
public String getBody()
public Integer getIndex()
public Calendar getDateCreated()
public Calendar getDateUpdated()
public String getUrl()
public boolean delete()
throws TwilioRestException
TwilioRestExceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.