java.lang.Object
com.intercom.api.resources.conversations.types.Conversation

public final class Conversation extends Object
  • Method Details

    • getType

      public Optional<String> getType()
      Returns:
      Always conversation.
    • getId

      public String getId()
      Returns:
      The id representing the conversation.
    • getTitle

      public Optional<String> getTitle()
      Returns:
      The title given to the conversation.
    • getCreatedAt

      public int getCreatedAt()
      Returns:
      The time the conversation was created.
    • getUpdatedAt

      public int getUpdatedAt()
      Returns:
      The last time the conversation was updated.
    • getWaitingSince

      public Optional<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 Optional<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 boolean getOpen()
      Returns:
      Indicates whether a conversation is open (true) or closed (false).
    • getState

      public Conversation.State getState()
      Returns:
      Can be set to "open", "closed" or "snoozed".
    • getRead

      public boolean getRead()
      Returns:
      Indicates whether a conversation has been read.
    • getPriority

      public Optional<Conversation.Priority> getPriority()
      Returns:
      If marked as priority, it will return priority or else not_priority.
    • getAdminAssigneeId

      public Optional<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 Optional<String> getTeamAssigneeId()
      Returns:
      The id of the team assigned to the conversation. If it's not assigned to a team it will return null.
    • getTags

      public Optional<Tags> getTags()
    • getConversationRating

      public Optional<ConversationRating> getConversationRating()
    • getSource

      public ConversationSource getSource()
    • getContacts

      public ConversationContacts getContacts()
    • getTeammates

      public ConversationTeammates getTeammates()
    • getCustomAttributes

      public Map<String,Object> getCustomAttributes()
    • getFirstContactReply

      public Optional<ConversationFirstContactReply> getFirstContactReply()
    • getSlaApplied

      public Optional<SlaApplied> getSlaApplied()
    • getStatistics

      public Optional<ConversationStatistics> getStatistics()
    • getConversationParts

      public Optional<ConversationParts> getConversationParts()
    • getLinkedObjects

      public Optional<LinkedObjectList> getLinkedObjects()
    • getAiAgentParticipated

      public Optional<Boolean> getAiAgentParticipated()
      Returns:
      Indicates whether the AI Agent participated in the conversation.
    • getAiAgent

      public Optional<AiAgent> getAiAgent()
    • 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 Conversation.IdStage builder()