Class Comment


  • public final class Comment
    extends java.lang.Object
    • Method Detail

      • getId

        public java.util.Optional<java.lang.String> getId()
      • getRemoteId

        public java.util.Optional<java.lang.String> getRemoteId()
        Returns:
        The third-party API ID of the matching object.
      • getCreatedAt

        public java.util.Optional<java.time.OffsetDateTime> getCreatedAt()
        Returns:
        The datetime that this object was created by Merge.
      • getModifiedAt

        public java.util.Optional<java.time.OffsetDateTime> getModifiedAt()
        Returns:
        The datetime that this object was modified by Merge.
      • getUser

        public java.util.Optional<CommentUser> getUser()
        Returns:
        The author of the Comment, if the author is a User. If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment.
      • getContact

        public java.util.Optional<CommentContact> getContact()
        Returns:
        The author of the Comment, if the author is a Contact.If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment.
      • getBody

        public java.util.Optional<java.lang.String> getBody()
        Returns:
        The comment's text body.
      • getHtmlBody

        public java.util.Optional<java.lang.String> getHtmlBody()
        Returns:
        The comment's text body formatted as html.
      • getTicket

        public java.util.Optional<CommentTicket> getTicket()
        Returns:
        The ticket associated with the comment.
      • getIsPrivate

        public java.util.Optional<java.lang.Boolean> getIsPrivate()
        Returns:
        Whether or not the comment is internal.
      • getRemoteCreatedAt

        public java.util.Optional<java.time.OffsetDateTime> getRemoteCreatedAt()
        Returns:
        When the third party's comment was created.
      • getRemoteWasDeleted

        public java.util.Optional<java.lang.Boolean> getRemoteWasDeleted()
        Returns:
        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.
      • getFieldMappings

        public java.util.Optional<java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode>> getFieldMappings()
      • getRemoteData

        public java.util.Optional<java.util.List<RemoteData>> getRemoteData()
      • 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