Skip to main content

CommentData

The comment data.

Type​

Object

Properties​

NameTypeDescription
AnnotTypestringThe annotation comment type.
RepliesCommentData[]An array containing the comment replies represented as the CommentData object.
TextstringThe comment text.
TimestringThe time when the comment was posted (in milliseconds).
UserIdstringThe user ID of the comment author.
UserNamestringThe comment author.

Example​

let commentData = {
"UserName": "John Smith",
"Text": "comment",
"Time": "1662737941471",
"Solved": true,
"Replies": [
{
"UserName": "Mark Potato",
"Text": "reply 1",
"Time": "1662740895892",
"Solved": false
}
]
};
window.Asc.plugin.executeMethod ("AddComment", [commentData]);