public class Message extends InstanceResource<TwilioRestClient>
| Constructor and Description |
|---|
Message(TwilioRestClient client)
Instantiates a new message.
|
Message(TwilioRestClient client,
Map<String,Object> properties)
Instantiates a new message.
|
Message(TwilioRestClient client,
String sid)
Instantiates a new message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Delete this
Message. |
String |
getAccountSid()
Gets the account sid.
|
String |
getApiVersion()
Gets the api version.
|
String |
getBody()
Gets the body.
|
Date |
getDateCreated()
Gets the date created.
|
Date |
getDateSent()
Gets the date sent.
|
Date |
getDateUpdated()
Gets the date updated.
|
String |
getDirection()
Gets the direction.
|
Integer |
getErrorCode()
Gets the error code for this message.
|
String |
getErrorMessage()
Gets the error message for this message.
|
String |
getFrom()
Gets the from.
|
MediaList |
getMedia()
Returns the a list of media.
|
Media |
getMedia(String mediaSid)
Returns the a list of media.
|
int |
getNumMedia()
Gets the number of media associated with the message.
|
int |
getNumSegments()
Gets the number of segments used to deliver this message.
|
String |
getPrice()
Gets the price.
|
String |
getPriceUnit()
Gets the price.
|
String |
getSid()
Gets the sid.
|
String |
getStatus()
Gets the status.
|
String |
getTo()
Gets the to.
|
Message |
redact()
Redact the body of this
Message. |
getObject, getProperty, update, updatesetRequestAccountSidpublic Message(TwilioRestClient client)
client - the clientpublic Message(TwilioRestClient client, String sid)
client - the clientsid - the sidpublic Message(TwilioRestClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic String getSid()
public MediaList getMedia()
public Media getMedia(String mediaSid)
mediaSid - the sid of a media instance associated with this messagepublic Date getDateCreated()
public Date getDateUpdated()
public Date getDateSent()
public String getAccountSid()
public String getTo()
public String getFrom()
public String getBody()
public String getStatus()
public String getPrice()
public String getPriceUnit()
public int getNumSegments()
public int getNumMedia()
public String getDirection()
public String getApiVersion()
public Integer getErrorCode()
public String getErrorMessage()
public boolean delete()
throws TwilioRestException
TwilioRestException - if there is an error in the requestpublic Message redact() throws TwilioRestException
Message.TwilioRestExceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.