Class ConversationStatistics

java.lang.Object
com.intercom.api.types.ConversationStatistics

public final class ConversationStatistics extends Object
  • Method Details

    • getType

      public String getType()
      Returns:
    • getTimeToAssignment

      public Optional<Integer> getTimeToAssignment()
      Returns:
      Duration until last assignment before first admin reply. In seconds.
    • getTimeToAdminReply

      public Optional<Integer> getTimeToAdminReply()
      Returns:
      Duration until first admin reply. Subtracts out of business hours. In seconds.
    • getTimeToFirstClose

      public Optional<Integer> getTimeToFirstClose()
      Returns:
      Duration until conversation was closed first time. Subtracts out of business hours. In seconds.
    • getTimeToLastClose

      public Optional<Integer> getTimeToLastClose()
      Returns:
      Duration until conversation was closed last time. Subtracts out of business hours. In seconds.
    • getMedianTimeToReply

      public Optional<Integer> getMedianTimeToReply()
      Returns:
      Median based on all admin replies after a contact reply. Subtracts out of business hours. In seconds.
    • getFirstContactReplyAt

      public Optional<Integer> getFirstContactReplyAt()
      Returns:
      Time of first text conversation part from a contact.
    • getFirstAssignmentAt

      public Optional<Integer> getFirstAssignmentAt()
      Returns:
      Time of first assignment after first_contact_reply_at.
    • getFirstAdminReplyAt

      public Optional<Integer> getFirstAdminReplyAt()
      Returns:
      Time of first admin reply after first_contact_reply_at.
    • getFirstCloseAt

      public Optional<Integer> getFirstCloseAt()
      Returns:
      Time of first close after first_contact_reply_at.
    • getLastAssignmentAt

      public Optional<Integer> getLastAssignmentAt()
      Returns:
      Time of last assignment after first_contact_reply_at.
    • getLastAssignmentAdminReplyAt

      public Optional<Integer> getLastAssignmentAdminReplyAt()
      Returns:
      Time of first admin reply since most recent assignment.
    • getLastContactReplyAt

      public Optional<Integer> getLastContactReplyAt()
      Returns:
      Time of the last conversation part from a contact.
    • getLastAdminReplyAt

      public Optional<Integer> getLastAdminReplyAt()
      Returns:
      Time of the last conversation part from an admin.
    • getLastCloseAt

      public Optional<Integer> getLastCloseAt()
      Returns:
      Time of the last conversation close.
    • getLastClosedById

      public Optional<String> getLastClosedById()
      Returns:
      The last admin who closed the conversation. Returns a reference to an Admin object.
    • getCountReopens

      public Optional<Integer> getCountReopens()
      Returns:
      Number of reopens after first_contact_reply_at.
    • getCountAssignments

      public Optional<Integer> getCountAssignments()
      Returns:
      Number of assignments after first_contact_reply_at.
    • getCountConversationParts

      public Optional<Integer> getCountConversationParts()
      Returns:
      Total number of conversation parts.
    • 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 ConversationStatistics.Builder builder()