Class Conversation.Builder
- All Implemented Interfaces:
Conversation._FinalStage,Conversation.ContactsStage,Conversation.CreatedAtStage,Conversation.IdStage,Conversation.OpenStage,Conversation.ReadStage,Conversation.SourceStage,Conversation.StateStage,Conversation.TeammatesStage,Conversation.UpdatedAtStage
- Enclosing class:
Conversation
-
Method Summary
Modifier and TypeMethodDescriptionadminAssigneeId(Integer adminAssigneeId) The id of the admin assigned to the conversation.adminAssigneeId(Optional<Integer> adminAssigneeId) aiAgentParticipated(Boolean aiAgentParticipated) Indicates whether the AI Agent participated in the conversation.aiAgentParticipated(Optional<Boolean> aiAgentParticipated) build()contacts(ConversationContacts contacts) conversationParts(ConversationParts conversationParts) conversationParts(Optional<ConversationParts> conversationParts) conversationRating(ConversationRating conversationRating) conversationRating(Optional<ConversationRating> conversationRating) createdAt(int createdAt) The time the conversation was created.customAttributes(String key, Object value) customAttributes(Map<String, Object> customAttributes) firstContactReply(ConversationFirstContactReply firstContactReply) firstContactReply(Optional<ConversationFirstContactReply> firstContactReply) from(Conversation other) The id representing the conversation.linkedObjects(LinkedObjectList linkedObjects) linkedObjects(Optional<LinkedObjectList> linkedObjects) open(boolean open) Indicates whether a conversation is open (true) or closed (false).priority(Conversation.Priority priority) If marked as priority, it will return priority or else not_priority.priority(Optional<Conversation.Priority> priority) putAllCustomAttributes(Map<String, Object> customAttributes) read(boolean read) Indicates whether a conversation has been read.slaApplied(SlaApplied slaApplied) slaApplied(Optional<SlaApplied> slaApplied) snoozedUntil(Integer snoozedUntil) If set this is the time in the future when this conversation will be marked as open.snoozedUntil(Optional<Integer> snoozedUntil) source(ConversationSource source) state(Conversation.State state) Can be set to "open", "closed" or "snoozed".statistics(ConversationStatistics statistics) statistics(Optional<ConversationStatistics> statistics) teamAssigneeId(String teamAssigneeId) The id of the team assigned to the conversation.teamAssigneeId(Optional<String> teamAssigneeId) teammates(ConversationTeammates teammates) The title given to the conversation.Always conversation.updatedAt(int updatedAt) The last time the conversation was updated.waitingSince(Integer waitingSince) The last time a Contact responded to an Admin.waitingSince(Optional<Integer> waitingSince)
-
Method Details
-
from
- Specified by:
fromin interfaceConversation.IdStage
-
id
The id representing the conversation.
- Specified by:
idin interfaceConversation.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
The time the conversation was created.
- Specified by:
createdAtin interfaceConversation.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
The last time the conversation was updated.
- Specified by:
updatedAtin interfaceConversation.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
open
Indicates whether a conversation is open (true) or closed (false).
- Specified by:
openin interfaceConversation.OpenStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
Can be set to "open", "closed" or "snoozed".
- Specified by:
statein interfaceConversation.StateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
read
Indicates whether a conversation has been read.
- Specified by:
readin interfaceConversation.ReadStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
source
- Specified by:
sourcein interfaceConversation.SourceStage
-
contacts
- Specified by:
contactsin interfaceConversation.ContactsStage
-
teammates
- Specified by:
teammatesin interfaceConversation.TeammatesStage
-
aiAgent
- Specified by:
aiAgentin interfaceConversation._FinalStage
-
aiAgent
- Specified by:
aiAgentin interfaceConversation._FinalStage
-
aiAgentParticipated
Indicates whether the AI Agent participated in the conversation.
- Specified by:
aiAgentParticipatedin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
aiAgentParticipated
- Specified by:
aiAgentParticipatedin interfaceConversation._FinalStage
-
linkedObjects
- Specified by:
linkedObjectsin interfaceConversation._FinalStage
-
linkedObjects
- Specified by:
linkedObjectsin interfaceConversation._FinalStage
-
conversationParts
- Specified by:
conversationPartsin interfaceConversation._FinalStage
-
conversationParts
- Specified by:
conversationPartsin interfaceConversation._FinalStage
-
statistics
- Specified by:
statisticsin interfaceConversation._FinalStage
-
statistics
- Specified by:
statisticsin interfaceConversation._FinalStage
-
slaApplied
- Specified by:
slaAppliedin interfaceConversation._FinalStage
-
slaApplied
- Specified by:
slaAppliedin interfaceConversation._FinalStage
-
firstContactReply
- Specified by:
firstContactReplyin interfaceConversation._FinalStage
-
firstContactReply
public Conversation._FinalStage firstContactReply(Optional<ConversationFirstContactReply> firstContactReply) - Specified by:
firstContactReplyin interfaceConversation._FinalStage
-
customAttributes
- Specified by:
customAttributesin interfaceConversation._FinalStage
-
putAllCustomAttributes
- Specified by:
putAllCustomAttributesin interfaceConversation._FinalStage
-
customAttributes
- Specified by:
customAttributesin interfaceConversation._FinalStage
-
conversationRating
- Specified by:
conversationRatingin interfaceConversation._FinalStage
-
conversationRating
- Specified by:
conversationRatingin interfaceConversation._FinalStage
-
tags
- Specified by:
tagsin interfaceConversation._FinalStage
-
tags
- Specified by:
tagsin interfaceConversation._FinalStage
-
teamAssigneeId
The id of the team assigned to the conversation. If it's not assigned to a team it will return null.
- Specified by:
teamAssigneeIdin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
teamAssigneeId
- Specified by:
teamAssigneeIdin interfaceConversation._FinalStage
-
adminAssigneeId
The id of the admin assigned to the conversation. If it's not assigned to an admin it will return null.
- Specified by:
adminAssigneeIdin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminAssigneeId
- Specified by:
adminAssigneeIdin interfaceConversation._FinalStage
-
priority
If marked as priority, it will return priority or else not_priority.
- Specified by:
priorityin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
priority
- Specified by:
priorityin interfaceConversation._FinalStage
-
snoozedUntil
If set this is the time in the future when this conversation will be marked as open. i.e. it will be in a snoozed state until this time. i.e. it will be in a snoozed state until this time.
- Specified by:
snoozedUntilin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
snoozedUntil
- Specified by:
snoozedUntilin interfaceConversation._FinalStage
-
waitingSince
The last time a Contact responded to an Admin. In other words, the time a customer started waiting for a response. Set to null if last reply is from an Admin.
- Specified by:
waitingSincein interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
waitingSince
- Specified by:
waitingSincein interfaceConversation._FinalStage
-
title
The title given to the conversation.
- Specified by:
titlein interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
- Specified by:
titlein interfaceConversation._FinalStage
-
type
Always conversation.
- Specified by:
typein interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
- Specified by:
typein interfaceConversation._FinalStage
-
build
- Specified by:
buildin interfaceConversation._FinalStage
-