ThreadedCommentCollection

ThreadedCommentCollection class

Represents the list of threaded comments.

class ThreadedCommentCollection;

Methods

MethodDescription
get(number)Gets the threaded comment by the specific index.
add(string, ThreadedCommentAuthor)Adds a threaded comment;

get(number)

Gets the threaded comment by the specific index.

get(index: number) : ThreadedComment;

Parameters:

ParameterTypeDescription
indexnumberThe index

Returns

ThreadedComment

add(string, ThreadedCommentAuthor)

Adds a threaded comment;

add(text: string, author: ThreadedCommentAuthor) : number;

Parameters:

ParameterTypeDescription
textstringThe text of the threaded comment.
authorThreadedCommentAuthorThe author of the threaded comment