Class Conversation
- java.lang.Object
-
- com.intercom.api.resources.conversations.types.Conversation
-
public final class Conversation extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConversation.Builderstatic classConversation.CustomAttributesValuestatic classConversation.Prioritystatic classConversation.State
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Conversation.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.Integer>getAdminAssigneeId()java.util.Optional<AiAgent>getAiAgent()java.util.Optional<java.lang.Boolean>getAiAgentParticipated()java.util.Optional<java.lang.String>getCompanyId()java.util.Optional<ConversationContacts>getContacts()java.util.Optional<ConversationParts>getConversationParts()java.util.Optional<ConversationRating>getConversationRating()java.util.Optional<java.lang.Integer>getCreatedAt()java.util.Optional<java.util.Map<java.lang.String,Conversation.CustomAttributesValue>>getCustomAttributes()java.util.Optional<ConversationFirstContactReply>getFirstContactReply()java.util.Optional<java.lang.String>getId()java.util.Optional<LinkedObjectList>getLinkedObjects()java.util.Optional<java.lang.Boolean>getOpen()java.util.Optional<Conversation.Priority>getPriority()java.util.Optional<java.lang.Boolean>getRead()java.util.Optional<SlaApplied>getSlaApplied()java.util.Optional<java.lang.Integer>getSnoozedUntil()java.util.Optional<ConversationSource>getSource()java.util.Optional<Conversation.State>getState()java.util.Optional<ConversationStatistics>getStatistics()java.util.Optional<Tags>getTags()java.util.Optional<java.lang.String>getTeamAssigneeId()java.util.Optional<ConversationTeammates>getTeammates()java.util.Optional<java.lang.String>getTitle()java.util.Optional<java.lang.String>getType()java.util.Optional<java.lang.Integer>getUpdatedAt()java.util.Optional<java.lang.Integer>getWaitingSince()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getType
public java.util.Optional<java.lang.String> getType()
- Returns:
- Always conversation.
-
getId
public java.util.Optional<java.lang.String> getId()
- Returns:
- The id representing the conversation.
-
getTitle
public java.util.Optional<java.lang.String> getTitle()
- Returns:
- The title given to the conversation.
-
getCreatedAt
public java.util.Optional<java.lang.Integer> getCreatedAt()
- Returns:
- The time the conversation was created.
-
getUpdatedAt
public java.util.Optional<java.lang.Integer> getUpdatedAt()
- Returns:
- The last time the conversation was updated.
-
getWaitingSince
public java.util.Optional<java.lang.Integer> getWaitingSince()
- Returns:
- 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.
-
getSnoozedUntil
public java.util.Optional<java.lang.Integer> getSnoozedUntil()
- Returns:
- 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.
-
getOpen
public java.util.Optional<java.lang.Boolean> getOpen()
- Returns:
- Indicates whether a conversation is open (true) or closed (false).
-
getState
public java.util.Optional<Conversation.State> getState()
- Returns:
- Can be set to "open", "closed" or "snoozed".
-
getRead
public java.util.Optional<java.lang.Boolean> getRead()
- Returns:
- Indicates whether a conversation has been read.
-
getPriority
public java.util.Optional<Conversation.Priority> getPriority()
- Returns:
- If marked as priority, it will return priority or else not_priority.
-
getAdminAssigneeId
public java.util.Optional<java.lang.Integer> getAdminAssigneeId()
- Returns:
- The id of the admin assigned to the conversation. If it's not assigned to an admin it will return null.
-
getTeamAssigneeId
public java.util.Optional<java.lang.String> getTeamAssigneeId()
- Returns:
- The id of the team assigned to the conversation. If it's not assigned to a team it will return null.
-
getCompanyId
public java.util.Optional<java.lang.String> getCompanyId()
- Returns:
- The ID of the company that the conversation is associated with. The unique identifier for the company which is given by Intercom.
-
getTags
public java.util.Optional<Tags> getTags()
-
getConversationRating
public java.util.Optional<ConversationRating> getConversationRating()
-
getSource
public java.util.Optional<ConversationSource> getSource()
-
getContacts
public java.util.Optional<ConversationContacts> getContacts()
-
getTeammates
public java.util.Optional<ConversationTeammates> getTeammates()
-
getCustomAttributes
public java.util.Optional<java.util.Map<java.lang.String,Conversation.CustomAttributesValue>> getCustomAttributes()
-
getFirstContactReply
public java.util.Optional<ConversationFirstContactReply> getFirstContactReply()
-
getSlaApplied
public java.util.Optional<SlaApplied> getSlaApplied()
-
getStatistics
public java.util.Optional<ConversationStatistics> getStatistics()
-
getConversationParts
public java.util.Optional<ConversationParts> getConversationParts()
-
getLinkedObjects
public java.util.Optional<LinkedObjectList> getLinkedObjects()
-
getAiAgentParticipated
public java.util.Optional<java.lang.Boolean> getAiAgentParticipated()
- Returns:
- Indicates whether the AI Agent participated in the conversation.
-
getAiAgent
public java.util.Optional<AiAgent> getAiAgent()
-
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 Conversation.Builder builder()
-
-