Class ConversationSource


  • public final class ConversationSource
    extends java.lang.Object
    • Method Detail

      • getType

        public java.util.Optional<ConversationSource.Type> getType()
        Returns:
        This includes conversation, email, facebook, instagram, phone_call, phone_switch, push, sms, twitter and whatsapp.
      • getId

        public java.util.Optional<java.lang.String> getId()
        Returns:
        The id representing the message.
      • getDeliveredAs

        public java.util.Optional<java.lang.String> getDeliveredAs()
        Returns:
        The conversation's initiation type. Possible values are customer_initiated, campaigns_initiated (legacy campaigns), operator_initiated (Custom bot), automated (Series and other outbounds with dynamic audience message) and admin_initiated (fixed audience message, ticket initiated by an admin, group email).
      • getSubject

        public java.util.Optional<java.lang.String> getSubject()
        Returns:
        Optional. The message subject. For Twitter, this will show a generic message regarding why the subject is obscured.
      • getBody

        public java.util.Optional<java.lang.String> getBody()
        Returns:
        The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured.
      • getAttachments

        public java.util.Optional<java.util.List<PartAttachment>> getAttachments()
        Returns:
        A list of attachments for the part.
      • getUrl

        public java.util.Optional<java.lang.String> getUrl()
        Returns:
        The URL where the conversation was started. For Twitter, Email, and Bots, this will be blank.
      • getRedacted

        public java.util.Optional<java.lang.Boolean> getRedacted()
        Returns:
        Whether or not the source message has been redacted. Only applicable for contact initiated messages.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object