|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.sdk.resource.Resource
com.twilio.sdk.resource.InstanceResource
com.twilio.sdk.resource.instance.Media
public class Media
The Class Media. For more information see https://www.twilio.com/docs/api/rest/media
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class com.twilio.sdk.resource.InstanceResource |
|---|
getObject, getProperty, update, update |
| Methods inherited from class com.twilio.sdk.resource.Resource |
|---|
setRequestAccountSid |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Media(TwilioRestClient client)
client - the client
public Media(TwilioRestClient client,
String mediaSid)
client - the clientmediaSid - the sid
public Media(TwilioRestClient client,
String messageSid,
String mediaSid)
client - the clientmessageSid - the sid of the parent messagemediaSid - the sid
public Media(TwilioRestClient client,
Map<String,Object> properties)
client - the clientproperties - the properties| Method Detail |
|---|
public 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 exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||