ApiComment
Represents the ApiComment class.
Methods
| Method | Returns | Description |
|---|---|---|
| AddReply | ApiComment | Adds a reply to a comment. |
| Delete | boolean | Deletes the current comment from the document. |
| GetAuthorName | string | Returns the comment author's name. |
| GetClassType | "comment" | Returns a type of the ApiComment class. |
| GetPosition | Object | Returns the position of the comment in the document. |
| GetQuoteText | Number | Returns the quote text of the current comment. |
| GetRepliesCount | Number | Returns a number of the comment replies. |
| GetText | string | Returns the comment text. |
| GetTime | Number | Returns the timestamp of the comment creation in the current time zone format. |
| GetTimeUTC | Number | Returns the timestamp of the comment creation in UTC format. |
| GetUserId | string | Returns the user ID of the comment author. |
| IsSolved | boolean | Checks if a comment is solved or not. |
| RemoveReplies | ApiComment | Removes the specified comment replies. |
| SetAuthorName | ApiComment | Sets the comment author's name. |
| SetPosition | None | Sets the position of the comment in the document. |
| SetSolved | ApiComment | Marks a comment as solved. |
| SetText | ApiComment | Sets the comment text. |
| SetTime | ApiComment | Sets the timestamp of the comment creation in the current time zone format. |
| SetTimeUTC | ApiComment | Sets the timestamp of the comment creation in UTC format. |
| SetUserId | ApiComment | Sets the user ID to the comment author. |