com.twilio.sdk.resource.instance
Class Call

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

public class Call
extends InstanceResource

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


Constructor Summary
Call(TwilioRestClient client)
          Instantiates a new call.
Call(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new call.
Call(TwilioRestClient client, String sid)
          Instantiates a new call.
 
Method Summary
 Call cancel()
          Cancel.
 String getAccountSid()
          Gets the account sid.
 String getAnsweredBy()
          Gets the answered by.
 String getCallerName()
          Gets the caller name.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 String getDirection()
          Gets the direction.
 String getDuration()
          Gets the duration.
 String getEndTime()
          Gets the end time.
 String getForwardedFrom()
          Gets the forwarded from.
 String getFrom()
          Gets the from.
 String getParentCallSid()
          Gets the parent call sid.
 String getPhoneNumberSid()
          Gets the phone number sid.
 String getPrice()
          Gets the price.
 RecordingList getRecordings()
          Returns the list of associated recordings
 String getSid()
          Gets the sid.
 String getStartTime()
          Gets the start time.
 String getStatus()
          Gets the status.
 String getTo()
          Gets the to.
 TranscriptionList getTranscriptions()
          Returns the list of associated transcriptions
 Call hangup()
          Hangup.
 Call redirect(String url, String method)
          Redirect.
 
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

Call

public Call(TwilioRestClient client)
Instantiates a new call.

Parameters:
client - the client

Call

public Call(TwilioRestClient client,
            String sid)
Instantiates a new call.

Parameters:
client - the client
sid - the sid

Call

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

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

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getTranscriptions

public TranscriptionList getTranscriptions()
Returns the list of associated transcriptions

Returns:
the TranscriptionList associated this this call

getRecordings

public RecordingList getRecordings()
Returns the list of associated recordings

Returns:
the RecordingList associated this this call

getParentCallSid

public String getParentCallSid()
Gets the parent call sid.

Returns:
the parent call 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

getTo

public String getTo()
Gets the to.

Returns:
the to

getFrom

public String getFrom()
Gets the from.

Returns:
the from

getPhoneNumberSid

public String getPhoneNumberSid()
Gets the phone number sid.

Returns:
the phone number sid

getStatus

public String getStatus()
Gets the status.

Returns:
the status

getStartTime

public String getStartTime()
Gets the start time.

Returns:
the start time

getEndTime

public String getEndTime()
Gets the end time.

Returns:
the end time

getDuration

public String getDuration()
Gets the duration.

Returns:
the duration

getPrice

public String getPrice()
Gets the price.

Returns:
the price

getDirection

public String getDirection()
Gets the direction.

Returns:
the direction

getAnsweredBy

public String getAnsweredBy()
Gets the answered by.

Returns:
the answered by

getForwardedFrom

public String getForwardedFrom()
Gets the forwarded from.

Returns:
the forwarded from

getCallerName

public String getCallerName()
Gets the caller name.

Returns:
the caller name

redirect

public Call redirect(String url,
                     String method)
              throws TwilioRestException
Redirect.

Parameters:
url - the url
method - the method
Returns:
the call
Throws:
TwilioRestException - the twilio rest exception

hangup

public Call hangup()
            throws TwilioRestException
Hangup.

Returns:
the call
Throws:
TwilioRestException - the twilio rest exception

cancel

public Call cancel()
            throws TwilioRestException
Cancel.

Returns:
the call
Throws:
TwilioRestException - the twilio rest exception


Copyright © 2011 Twilio, Inc. All Rights Reserved.