|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.sdk.resource.Resource<C>
com.twilio.sdk.resource.InstanceResource<TwilioRestClient>
com.twilio.sdk.resource.instance.Call
public class Call
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. |
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. |
| 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 Call(TwilioRestClient client)
client - the client
public Call(TwilioRestClient client,
String sid)
client - the clientsid - the sid
public Call(TwilioRestClient client,
Map<String,Object> properties)
client - the clientproperties - the properties| Method Detail |
|---|
public 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 request
public void setFeedback(List<org.apache.http.NameValuePair> params)
throws TwilioRestException
FeedbackFactory.create(java.util.List) .
params - the feedback parameters
TwilioRestExceptionpublic Feedback getFeedback()
public Call redirect(String url,
String method)
throws TwilioRestException
url - the urlmethod - the method
TwilioRestException - the twilio rest exception
public Call hangup()
throws TwilioRestException
TwilioRestException - the twilio rest exception
public Call cancel()
throws TwilioRestException
TwilioRestException - the twilio rest exception
public boolean delete()
throws TwilioRestException
Call. This will remove it from this Account.
TwilioRestException - if there is an error in the request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||