public class Call extends SidResource
Modifier and Type | Class and Description |
---|---|
static class |
Call.Event |
static class |
Call.Status |
Modifier and Type | Method and Description |
---|---|
static CallCreator |
create(String accountSid,
PhoneNumber to,
PhoneNumber from,
String applicationSid)
Create a CallCreator to execute create.
|
static CallCreator |
create(String accountSid,
PhoneNumber to,
PhoneNumber from,
URI url)
Create a CallCreator to execute create.
|
static CallDeleter |
delete(String accountSid,
String sid)
Create a CallDeleter to execute delete.
|
boolean |
equals(Object o) |
static CallFetcher |
fetch(String accountSid,
String sid)
Create a CallFetcher to execute fetch.
|
static Call |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Call object using the provided
ObjectMapper.
|
static Call |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Call object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The unique id of the Account responsible for creating this Call.
|
String |
getAnnotation()
Returns The The annotation provided for the Call.
|
String |
getAnsweredBy()
Returns The If this call was initiated with answering machine detection,
either `human` or `machine`.
|
String |
getApiVersion()
Returns The The API Version the Call was created through.
|
String |
getCallerName()
Returns The If this call was an incoming call to a phone number with Caller
ID Lookup enabled, the caller's name.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date that this resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date that this resource was last updated.
|
String |
getDirection()
Returns The A string describing the direction of the call.
|
String |
getDuration()
Returns The The duration.
|
org.joda.time.DateTime |
getEndTime()
Returns The The end time of the Call.
|
String |
getForwardedFrom()
Returns The If this Call was an incoming call forwarded from another number,
the forwarding phone number (depends on carrier supporting forwarding).
|
String |
getFrom()
Returns The The phone number, SIP address or Client identifier that made this
Call.
|
String |
getFromFormatted()
Returns The The phone number, SIP address or Client identifier that made this
Call.
|
String |
getGroupSid()
Returns The A 34 character Group Sid associated with this Call.
|
String |
getParentCallSid()
Returns The A 34 character string that uniquely identifies the Call that
created this leg..
|
String |
getPhoneNumberSid()
Returns The If the call was inbound, this is the Sid of the
IncomingPhoneNumber that received the call.
|
BigDecimal |
getPrice()
Returns The The charge for this call, in the currency associated with the
account.
|
Currency |
getPriceUnit()
Returns The The currency in which `Price` is measured..
|
String |
getSid()
Returns The A 34 character string that uniquely identifies this resource..
|
org.joda.time.DateTime |
getStartTime()
Returns The The start time of the Call.
|
Call.Status |
getStatus()
Returns The The status.
|
Map<String,String> |
getSubresourceUris()
Returns The Call Instance Subresources.
|
String |
getTo()
Returns The The phone number, SIP address or Client identifier that received
this Call.
|
String |
getToFormatted()
Returns The The phone number, SIP address or Client identifier that received
this Call.
|
String |
getUri()
Returns The The URI for this resource, relative to `https://api.twilio.com`.
|
int |
hashCode() |
static CallReader |
read(String accountSid)
Create a CallReader to execute read.
|
String |
toString() |
static CallUpdater |
update(String accountSid,
String sid)
Create a CallUpdater to execute update.
|
public static CallCreator create(String accountSid, PhoneNumber to, PhoneNumber from, URI url)
accountSid
- The account_sidto
- Phone number, SIP address or client identifier to callfrom
- Twilio number from which to originate the callurl
- Url from which to fetch TwiMLpublic static CallCreator create(String accountSid, PhoneNumber to, PhoneNumber from, String applicationSid)
accountSid
- The account_sidto
- Phone number, SIP address or client identifier to callfrom
- Twilio number from which to originate the callapplicationSid
- ApplicationSid that configures from where to fetch
TwiMLpublic static CallDeleter delete(String accountSid, String sid)
accountSid
- The account_sidsid
- Call Sid that uniquely identifies the Call to deletepublic static CallFetcher fetch(String accountSid, String sid)
accountSid
- The account_sidsid
- Call Sid that uniquely identifies the Call to fetchpublic static CallReader read(String accountSid)
accountSid
- The account_sidpublic static CallUpdater update(String accountSid, String sid)
accountSid
- The account_sidsid
- Call Sid that uniquely identifies the Call to updatepublic static Call fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Call fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getAnnotation()
public final String getAnsweredBy()
public final String getApiVersion()
public final String getCallerName()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getDirection()
public final String getDuration()
public final org.joda.time.DateTime getEndTime()
public final String getForwardedFrom()
public final String getFrom()
public final String getFromFormatted()
public final String getGroupSid()
public final String getParentCallSid()
public final String getPhoneNumberSid()
public final BigDecimal getPrice()
public final Currency getPriceUnit()
public final String getSid()
getSid
in class SidResource
public final org.joda.time.DateTime getStartTime()
public final Call.Status getStatus()
public final Map<String,String> getSubresourceUris()
public final String getTo()
public final String getToFormatted()
public final String getUri()
Copyright © 2011 Twilio, Inc. All Rights Reserved.