Class 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 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 call
        to - The terminating Phone Number
        reason - 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 String
        objectMapper - 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 InputStream
        objectMapper - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object