Package com.intercom.api.types
Class ConversationSource
- java.lang.Object
-
- com.intercom.api.types.ConversationSource
-
public final class ConversationSource extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConversationSource.Builderstatic classConversationSource.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationSource.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.util.List<PartAttachment>>getAttachments()java.util.Optional<ConversationPartAuthor>getAuthor()java.util.Optional<java.lang.String>getBody()java.util.Optional<java.lang.String>getDeliveredAs()java.util.Optional<java.lang.String>getId()java.util.Optional<java.lang.Boolean>getRedacted()java.util.Optional<java.lang.String>getSubject()java.util.Optional<ConversationSource.Type>getType()java.util.Optional<java.lang.String>getUrl()inthashCode()java.lang.StringtoString()
-
-
-
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.
-
getAuthor
public java.util.Optional<ConversationPartAuthor> getAuthor()
-
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:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ConversationSource.Builder builder()
-
-