public class Call extends InstanceResource<TwilioRestClient>
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Call |
cancel()
Cancel.
|
boolean |
delete()
Delete this
Call. |
boolean |
deleteFeedback()
Delete the call feedback.
|
String |
getAccountSid()
Gets the account sid.
|
String |
getAnsweredBy()
Gets the answered by.
|
String |
getApiVersion()
The API version that Twilio used for TwiML requests during this call.
|
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.
|
Date |
getEndTime()
Gets the end time.
|
Feedback |
getFeedback()
Gets the feedback for the call.
|
FeedbackFactory |
getFeedbackFactory()
Gets the feedback factory, which lets add feedback to this call.
|
String |
getForwardedFrom()
Gets the forwarded from.
|
String |
getFrom()
Gets the from.
|
NotificationList |
getNotifications()
Returns the list of associated notifications
|
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.
|
Date |
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.
|
void |
setFeedback(List<org.apache.http.NameValuePair> params)
Sets the call feedback.
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic Call(TwilioRestClient client)
client - the clientpublic Call(TwilioRestClient client, String sid)
client - the clientsid - the sidpublic Call(TwilioRestClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic String getSid()
public TranscriptionList getTranscriptions()
public RecordingList getRecordings()
public NotificationList getNotifications()
public String getParentCallSid()
public Date getDateCreated()
public Date getDateUpdated()
public String getAccountSid()
public String getTo()
public String getFrom()
public String getPhoneNumberSid()
public String getStatus()
public Date getStartTime()
public Date getEndTime()
public String getDuration()
public String getPrice()
public String getDirection()
public String getAnsweredBy()
public String getForwardedFrom()
public String getCallerName()
public String getApiVersion()
public FeedbackFactory getFeedbackFactory()
public boolean deleteFeedback()
throws TwilioRestException
TwilioRestException - if there is an error in the requestpublic void setFeedback(List<org.apache.http.NameValuePair> params) throws TwilioRestException
FeedbackFactory.create(java.util.List<org.apache.http.NameValuePair>).params - the feedback parametersTwilioRestExceptionpublic Feedback getFeedback()
public Call redirect(String url, String method) throws TwilioRestException
url - the urlmethod - the methodTwilioRestException - the twilio rest exceptionpublic Call hangup() throws TwilioRestException
TwilioRestException - the twilio rest exceptionpublic Call cancel() throws TwilioRestException
TwilioRestException - the twilio rest exceptionpublic boolean delete()
throws TwilioRestException
TwilioRestException - if there is an error in the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.