com.twilio.sdk.resource.instance
Class Recording

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.InstanceResource
          extended by com.twilio.sdk.resource.instance.Recording

public class Recording
extends InstanceResource

The Class Recording. For more information see https://www.twilio.com/docs/api/rest/recording


Constructor Summary
Recording(TwilioRestClient client)
          Instantiates a new recording.
Recording(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new recording.
Recording(TwilioRestClient client, String sid)
          Instantiates a new recording.
 
Method Summary
 boolean delete()
          Delete this Recording
 String getAccountSid()
          Gets the account sid.
 String getApiVersion()
          Gets the api version.
 String getCallSid()
          Gets the call sid.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 int getDuration()
          Gets the duration.
 InputStream getMedia(String extension)
          Gets the media.
 String getSid()
          Gets the sid.
 
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

Recording

public Recording(TwilioRestClient client)
Instantiates a new recording.

Parameters:
client - the client

Recording

public Recording(TwilioRestClient client,
                 String sid)
Instantiates a new recording.

Parameters:
client - the client
sid - the sid

Recording

public Recording(TwilioRestClient client,
                 Map<String,Object> properties)
Instantiates a new recording.

Parameters:
client - the client
properties - the properties
Method Detail

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getDateCreated

public Date getDateCreated()
Gets the date created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
Gets the date updated.

Returns:
the date updated

getAccountSid

public String getAccountSid()
Gets the account sid.

Returns:
the account sid

getCallSid

public String getCallSid()
Gets the call sid.

Returns:
the call sid

getDuration

public int getDuration()
Gets the duration.

Returns:
the duration

getApiVersion

public String getApiVersion()
Gets the api version.

Returns:
the api version

getMedia

public InputStream getMedia(String extension)
Gets the media.

Parameters:
extension - the extension
Returns:
the media

delete

public boolean delete()
               throws TwilioRestException
Delete this Recording

Returns:
true, if successful
Throws:
TwilioRestException - the twilio rest exception


Copyright © 2011 Twilio, Inc. All Rights Reserved.