Class ConversationPart

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

public final class ConversationPart extends Object
  • Method Details

    • getType

      public String getType()
      Returns:
      Always conversation_part
    • getId

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

      public String getPartType()
      Returns:
      The type of conversation part.
    • getBody

      public Optional<String> getBody()
      Returns:
      The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured.
    • getCreatedAt

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

      public Optional<Integer> getUpdatedAt()
      Returns:
      The last time the conversation part was updated.
    • getNotifiedAt

      public int getNotifiedAt()
      Returns:
      The time the user was notified with the conversation part.
    • getAssignedTo

      public Optional<Reference> getAssignedTo()
      Returns:
      The id of the admin that was assigned the conversation by this conversation_part (null if there has been no change in assignment.)
    • getAuthor

      public ConversationPartAuthor getAuthor()
    • getAttachments

      public Optional<List<PartAttachment>> getAttachments()
      Returns:
      A list of attachments for the part.
    • getExternalId

      public Optional<String> getExternalId()
      Returns:
      The external id of the conversation part
    • getRedacted

      public boolean getRedacted()
      Returns:
      Whether or not the conversation part has been redacted.
    • 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 ConversationPart.IdStage builder()