Class ConversationSource.Builder
- All Implemented Interfaces:
ConversationSource._FinalStage,ConversationSource.AuthorStage,ConversationSource.DeliveredAsStage,ConversationSource.IdStage,ConversationSource.RedactedStage,ConversationSource.SubjectStage,ConversationSource.TypeStage
- Enclosing class:
ConversationSource
-
Method Summary
Modifier and TypeMethodDescriptionattachments(List<PartAttachment> attachments) A list of attachments for the part.attachments(Optional<List<PartAttachment>> attachments) author(ConversationPartAuthor author) The message body, which may contain HTML.build()deliveredAs(String deliveredAs) The conversation's initiation type.from(ConversationSource other) The id representing the message.redacted(boolean redacted) Whether or not the source message has been redacted.Optional.type(ConversationSource.Type type) This includes conversation, email, facebook, instagram, phone_call, phone_switch, push, sms, twitter and whatsapp.The URL where the conversation was started.
-
Method Details
-
from
- Specified by:
fromin interfaceConversationSource.TypeStage
-
type
This includes conversation, email, facebook, instagram, phone_call, phone_switch, push, sms, twitter and whatsapp.
- Specified by:
typein interfaceConversationSource.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
The id representing the message.
- Specified by:
idin interfaceConversationSource.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
deliveredAs
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).
- Specified by:
deliveredAsin interfaceConversationSource.DeliveredAsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
subject
Optional. The message subject. For Twitter, this will show a generic message regarding why the subject is obscured.
- Specified by:
subjectin interfaceConversationSource.SubjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
author
- Specified by:
authorin interfaceConversationSource.AuthorStage
-
redacted
Whether or not the source message has been redacted. Only applicable for contact initiated messages.
- Specified by:
redactedin interfaceConversationSource.RedactedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
The URL where the conversation was started. For Twitter, Email, and Bots, this will be blank.
- Specified by:
urlin interfaceConversationSource._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
- Specified by:
urlin interfaceConversationSource._FinalStage
-
attachments
A list of attachments for the part.
- Specified by:
attachmentsin interfaceConversationSource._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
attachments
- Specified by:
attachmentsin interfaceConversationSource._FinalStage
-
body
The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured.
- Specified by:
bodyin interfaceConversationSource._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
- Specified by:
bodyin interfaceConversationSource._FinalStage
-
build
- Specified by:
buildin interfaceConversationSource._FinalStage
-