Class Conversation


  • public final class Conversation
    extends java.lang.Object
    • 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.
      • getCompany

        public java.util.Optional<Company> getCompany()
        Returns:
        The company associated with the conversation.
      • getTags

        public java.util.Optional<Tags> getTags()
      • getConversationRating

        public java.util.Optional<ConversationRating> getConversationRating()
      • getSlaApplied

        public java.util.Optional<SlaApplied> getSlaApplied()
      • 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:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object