Comment

data class Comment(val id: String, url: String, val commentBoardId: String? = null, val parentCommentId: String? = null, val threadCommentId: String? = null, val text: String? = null, val commentDepth: Int, val customData: String? = null, val authorId: String? = null, val createdAt: String, repliesUrl: String, val repliesCount: Int, val isDeleted: Boolean, val deletedBy: String? = null, val deletedAt: String? = null, val isReplyLocked: Boolean? = null, val isReported: Boolean, val commentReportsCount: Int, val trendingScore: Double? = null, dismissReportedCommentUrl: String, val pinnedCommentsUrl: String? = null, val author: Profile, val authorImageUrl: String? = null, val filteredText: String? = null, val contentFilter: List<String>? = null, val isAuthorActive: Boolean? = null, val replies: List<Comment>? = null, val attributes: List<CommentAttribute> = emptyList(), val reactions: List<CommentReaction> = emptyList(), val mentions: List<Mention> = emptyList(), val isFromMe: Boolean = false, val isDeletedByMe: Boolean = false)

Represents a comment returned by the comment APIs.

Constructors

Link copied to clipboard
constructor(id: String, url: String, commentBoardId: String? = null, parentCommentId: String? = null, threadCommentId: String? = null, text: String? = null, commentDepth: Int, customData: String? = null, authorId: String? = null, createdAt: String, repliesUrl: String, repliesCount: Int, isDeleted: Boolean, deletedBy: String? = null, deletedAt: String? = null, isReplyLocked: Boolean? = null, isReported: Boolean, commentReportsCount: Int, trendingScore: Double? = null, dismissReportedCommentUrl: String, pinnedCommentsUrl: String? = null, author: Profile, authorImageUrl: String? = null, filteredText: String? = null, contentFilter: List<String>? = null, isAuthorActive: Boolean? = null, replies: List<Comment>? = null, attributes: List<CommentAttribute> = emptyList(), reactions: List<CommentReaction> = emptyList(), mentions: List<Mention> = emptyList(), isFromMe: Boolean = false, isDeletedByMe: Boolean = false)

Properties

Link copied to clipboard
@SerializedName(value = "attributes")
val attributes: List<CommentAttribute>
Link copied to clipboard
Link copied to clipboard
@SerializedName(value = "author_id")
val authorId: String?
Link copied to clipboard
@SerializedName(value = "author_image_url")
val authorImageUrl: String?
Link copied to clipboard
@SerializedName(value = "comment_board_id")
val commentBoardId: String?
Link copied to clipboard
@SerializedName(value = "comment_depth")
val commentDepth: Int
Link copied to clipboard
@SerializedName(value = "comment_reports_count")
val commentReportsCount: Int
Link copied to clipboard
@SerializedName(value = "content_filter")
val contentFilter: List<String>?
Link copied to clipboard
@SerializedName(value = "created_at")
val createdAt: String
Link copied to clipboard
@SerializedName(value = "custom_data")
val customData: String?
Link copied to clipboard
@SerializedName(value = "deleted_at")
val deletedAt: String?
Link copied to clipboard
@SerializedName(value = "deleted_by")
val deletedBy: String?
Link copied to clipboard
@SerializedName(value = "filtered_text")
val filteredText: String?
Link copied to clipboard
@SerializedName(value = "id")
val id: String
Link copied to clipboard
@SerializedName(value = "is_author_active")
val isAuthorActive: Boolean?

Present only when exclude_inactive_profile=true is requested. False denotes a tombstone comment whose inactive author is retained because it has replies.

Link copied to clipboard
@SerializedName(value = "is_deleted")
val isDeleted: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerializedName(value = "is_reply_locked")
val isReplyLocked: Boolean?
Link copied to clipboard
@SerializedName(value = "is_reported")
val isReported: Boolean
Link copied to clipboard
@SerializedName(value = "mentions")
val mentions: List<Mention>
Link copied to clipboard
@SerializedName(value = "parent_comment_id")
val parentCommentId: String?
Link copied to clipboard
@SerializedName(value = "pinned_comments_url")
val pinnedCommentsUrl: String?
Link copied to clipboard
@SerializedName(value = "reactions")
val reactions: List<CommentReaction>
Link copied to clipboard
@SerializedName(value = "replies")
val replies: List<Comment>?

Inline replies included only when the request is made with repliesLimit. When inline replies are not requested or not included in the response, this value is null.

Link copied to clipboard
@SerializedName(value = "replies_count")
val repliesCount: Int
Link copied to clipboard
@SerializedName(value = "text")
val text: String?
Link copied to clipboard
@SerializedName(value = "thread_comment_id")
val threadCommentId: String?
Link copied to clipboard
@SerializedName(value = "trending_score")
val trendingScore: Double?