Class ConversationSource

java.lang.Object
com.intercom.api.types.ConversationSource

public final class ConversationSource extends Object
  • Method Details

    • getType

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

      public String getId()
      Returns:
      The id representing the message.
    • getDeliveredAs

      public 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 String getSubject()
      Returns:
      Optional. The message subject. For Twitter, this will show a generic message regarding why the subject is obscured.
    • getBody

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

      public ConversationPartAuthor getAuthor()
    • getAttachments

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

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

      public boolean getRedacted()
      Returns:
      Whether or not the source message has been redacted. Only applicable for contact initiated messages.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ConversationSource.TypeStage builder()