Comment Draft
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)Content copied to clipboard
Constructors
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
Display name of the person being replied to, or null.
Link copied to clipboard
User ID of the person being replied to, or null.