CommentDraft

data class CommentDraft(val body: String = "", val authorName: String? = null, val authorEmail: String? = null, val authorAvatarUrl: String? = null, val parentId: String? = null, val replyToClerkId: String? = null, val replyToAuthorName: String? = null)(source)

Draft content for creating a new comment or threaded @reply via FeedbackClient.postComment.

Example:

val comment = CommentDraft(
body = "I would love to see this implemented in the next release!",
authorName = "Jordan",
parentId = parentComment.id,
replyToAuthorName = parentComment.authorName
)
val created = client.postComment(featureRequestId = "req_123", draft = comment, userToken = token)

Constructors

Link copied to clipboard
constructor(body: String = "", authorName: String? = null, authorEmail: String? = null, authorAvatarUrl: String? = null, parentId: String? = null, replyToClerkId: String? = null, replyToAuthorName: String? = null)

Properties

Link copied to clipboard

Optional avatar picture URL.

Link copied to clipboard

Optional contact email address.

Link copied to clipboard

Optional display name of the comment author.

Link copied to clipboard

Text content of the comment (minimum 1 character).

Link copied to clipboard

ID of the parent comment when creating a reply, or null for top-level comments.

Link copied to clipboard

Display name of the person being replied to, or null.

Link copied to clipboard

User ID of the person being replied to, or null.