Class BrandedCall
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.trustedComms.BrandedCall
-
- All Implemented Interfaces:
Serializable
public class BrandedCall extends Resource
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BrandedCallCreator
creator(String from, String to, String reason)
Create a BrandedCallCreator to execute create.boolean
equals(Object o)
static BrandedCall
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a BrandedCall object using the provided ObjectMapper.static BrandedCall
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a BrandedCall object using the provided ObjectMapper.String
getAccountSid()
Returns The Account Sid..String
getBgColor()
Returns The Background color of the current phone call.String
getCaller()
Returns The Caller name of the current phone call.org.joda.time.DateTime
getCreatedAt()
Returns The The date this current phone call was created.String
getFontColor()
Returns The Font color of the current phone call.String
getFrom()
Returns The The originating phone number.String
getLogo()
Returns The Logo URL of the caller.String
getReason()
Returns The The business reason for this current phone call.String
getStatus()
Returns The The status of the current phone call.String
getTo()
Returns The The terminating phone number.URI
getUrl()
Returns The The URL of this resource..String
getUseCase()
Returns The The use case for the current phone call.int
hashCode()
String
toString()
-
-
-
Method Detail
-
creator
public static BrandedCallCreator creator(String from, String to, String reason)
Create a BrandedCallCreator to execute create.- Parameters:
from
- Twilio number from which to brand the callto
- The terminating Phone Numberreason
- The business reason for this phone call- Returns:
- BrandedCallCreator capable of executing the create
-
fromJson
public static BrandedCall fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a BrandedCall object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- BrandedCall object represented by the provided JSON
-
fromJson
public static BrandedCall fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a BrandedCall object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- BrandedCall object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The Account Sid..- Returns:
- Account Sid.
-
getBgColor
public final String getBgColor()
Returns The Background color of the current phone call.- Returns:
- Background color of the current phone call
-
getCaller
public final String getCaller()
Returns The Caller name of the current phone call.- Returns:
- Caller name of the current phone call
-
getCreatedAt
public final org.joda.time.DateTime getCreatedAt()
Returns The The date this current phone call was created.- Returns:
- The date this current phone call was created
-
getFontColor
public final String getFontColor()
Returns The Font color of the current phone call.- Returns:
- Font color of the current phone call
-
getFrom
public final String getFrom()
Returns The The originating phone number.- Returns:
- The originating phone number
-
getLogo
public final String getLogo()
Returns The Logo URL of the caller.- Returns:
- Logo URL of the caller
-
getReason
public final String getReason()
Returns The The business reason for this current phone call.- Returns:
- The business reason for this current phone call
-
getStatus
public final String getStatus()
Returns The The status of the current phone call.- Returns:
- The status of the current phone call
-
getTo
public final String getTo()
Returns The The terminating phone number.- Returns:
- The terminating phone number
-
getUrl
public final URI getUrl()
Returns The The URL of this resource..- Returns:
- The URL of this resource.
-
getUseCase
public final String getUseCase()
Returns The The use case for the current phone call.- Returns:
- The use case for the current phone call
-
-