public class Call extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Call.Event |
static class |
Call.Status |
static class |
Call.UpdateStatus |
| Modifier and Type | Method and Description |
|---|---|
static CallCreator |
creator(Endpoint to,
PhoneNumber from,
String applicationSid)
Create a CallCreator to execute create.
|
static CallCreator |
creator(Endpoint to,
PhoneNumber from,
URI url)
Create a CallCreator to execute create.
|
static CallCreator |
creator(String pathAccountSid,
Endpoint to,
PhoneNumber from,
String applicationSid)
Create a CallCreator to execute create.
|
static CallCreator |
creator(String pathAccountSid,
Endpoint to,
PhoneNumber from,
URI url)
Create a CallCreator to execute create.
|
static CallDeleter |
deleter(String pathSid)
Create a CallDeleter to execute delete.
|
static CallDeleter |
deleter(String pathAccountSid,
String pathSid)
Create a CallDeleter to execute delete.
|
boolean |
equals(Object o) |
static CallFetcher |
fetcher(String pathSid)
Create a CallFetcher to execute fetch.
|
static CallFetcher |
fetcher(String pathAccountSid,
String pathSid)
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 |
reader()
Create a CallReader to execute read.
|
static CallReader |
reader(String pathAccountSid)
Create a CallReader to execute read.
|
String |
toString() |
static CallUpdater |
updater(String pathSid)
Create a CallUpdater to execute update.
|
static CallUpdater |
updater(String pathAccountSid,
String pathSid)
Create a CallUpdater to execute update.
|
public static CallCreator creator(String pathAccountSid, Endpoint to, PhoneNumber from, URI url)
pathAccountSid - 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 creator(Endpoint to, PhoneNumber from, URI url)
to - 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 creator(String pathAccountSid, Endpoint to, PhoneNumber from, String applicationSid)
pathAccountSid - 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 CallCreator creator(Endpoint to, PhoneNumber from, String applicationSid)
to - 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 deleter(String pathAccountSid, String pathSid)
pathAccountSid - The account_sidpathSid - Call Sid that uniquely identifies the Call to deletepublic static CallDeleter deleter(String pathSid)
pathSid - Call Sid that uniquely identifies the Call to deletepublic static CallFetcher fetcher(String pathAccountSid, String pathSid)
pathAccountSid - The account_sidpathSid - Call Sid that uniquely identifies the Call to fetchpublic static CallFetcher fetcher(String pathSid)
pathSid - Call Sid that uniquely identifies the Call to fetchpublic static CallReader reader(String pathAccountSid)
pathAccountSid - The account_sidpublic static CallReader reader()
public static CallUpdater updater(String pathAccountSid, String pathSid)
pathAccountSid - The account_sidpathSid - Call Sid that uniquely identifies the Call to updatepublic static CallUpdater updater(String pathSid)
pathSid - 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()
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 © 2016 Twilio, Inc. All Rights Reserved.