public class Media extends InstanceResource<TwilioRestClient>
| Constructor and Description |
|---|
Media(TwilioRestClient client)
Instantiates a new media instance.
|
Media(TwilioRestClient client,
Map<String,Object> properties)
Instantiates a new media instance.
|
Media(TwilioRestClient client,
String mediaSid)
Instantiates a new media instance.
|
Media(TwilioRestClient client,
String messageSid,
String mediaSid)
Instantiates a new media instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Delete this Media
|
String |
getAccountSid()
Gets the account sid.
|
String |
getApiVersion()
Gets the api version.
|
String |
getContentType()
Gets the content type
|
Date |
getDateCreated()
Gets the date created.
|
Date |
getDateUpdated()
Gets the date updated.
|
Integer |
getDuration()
Gets the duration
|
String |
getParentSid()
Gets the parent sid.
|
String |
getRequestMessageSid()
Gets the sid of the requesting message
|
String |
getSid()
Gets the sid.
|
String |
getUri()
Gets the uri of this media
|
getObject, getProperty, update, updatesetRequestAccountSidpublic Media(TwilioRestClient client)
client - the clientpublic Media(TwilioRestClient client, String mediaSid)
client - the clientmediaSid - the sidpublic Media(TwilioRestClient client, String messageSid, String mediaSid)
client - the clientmessageSid - the sid of the parent messagemediaSid - the sidpublic Media(TwilioRestClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic String getSid()
public String getRequestMessageSid()
public Date getDateCreated()
public Date getDateUpdated()
public String getAccountSid()
public String getParentSid()
public String getContentType()
public Integer getDuration()
public String getApiVersion()
public String getUri()
public boolean delete()
throws TwilioRestException
TwilioRestException - the twilio rest exceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.