Skip to main content

ApiComment

Represents the ApiComment class.

Properties

NameTypeDescription
AuthorNamestringReturns or sets the comment author's name.
IdstringReturns the current comment ID.
QuoteTextstringReturns the quote text of the current comment.
RepliesCountNumberReturns a number of the comment replies.
SolvedbooleanChecks if a comment is solved or not or marks a comment as solved.
TextstringReturns or sets the comment text.
Timenumber | stringReturns or sets the timestamp of the comment creation in the current time zone format.
TimeUTCnumber | stringReturns or sets the timestamp of the comment creation in UTC format.
UserIdstringReturns or sets the user ID of the comment author.

Methods

MethodReturnsDescription
AddReplyNoneAdds a reply to a comment.
DeleteNoneDeletes the ApiComment object.
GetAuthorNamestringReturns the comment author's name.
GetClassType"comment"Returns a type of the ApiComment class.
GetIdstringReturns the current comment ID.
GetQuoteTextString | nullReturns the quote text of the current comment.
GetRepliesCountNumberReturns a number of the comment replies.
GetReplyApiCommentReplyReturns the specified comment reply.
GetTextstringReturns the comment text.
GetTimeNumberReturns the timestamp of the comment creation in the current time zone format.
GetTimeUTCNumberReturns the timestamp of the comment creation in UTC format.
GetUserIdstringReturns the user ID of the comment author.
IsSolvedbooleanChecks if a comment is solved or not.
RemoveRepliesNoneRemoves the specified comment replies.
SetAuthorNameNoneSets the comment author's name.
SetSolvedNoneMarks a comment as solved.
SetTextNoneSets the comment text.
SetTimeNoneSets the timestamp of the comment creation in the current time zone format.
SetTimeUTCNoneSets the timestamp of the comment creation in UTC format.
SetUserIdNoneSets the user ID to the comment author.