ApiComment
表示 ApiComment 类。
属性
| 名称 | 类型 | 描述 |
|---|---|---|
| AuthorName | string | 返回或设置批注作者的姓名。 |
| Id | string | 返回当前批注 ID。 |
| QuoteText | string | 返回当前批注的引用文本。 |
| RepliesCount | Number | 返回批注回复的数量。 |
| Solved | boolean | 检查批注是否已解决或将批注标记为已解决。 |
| Text | string | 返回或设置批注文本。 |
| Time | number | string | 返回或设置当前时区格式的批注创建时间戳。 |
| TimeUTC | number | string | 返回或设置 UTC 格式的批注创建时间戳。 |
| UserId | string | 返回或设置批注作者的用户 ID。 |
方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| AddReply | 无 | 向批注添加回复。 |
| Delete | 无 | 删除 ApiComment 对象。 |
| GetAuthorName | string | 返回批注作者的姓名。 |
| GetClassType | "comment" | 返回 ApiComment 类的类型。 |
| GetId | string | 返回当前批注 ID。 |
| GetQuoteText | String | null | 返回当前批注的引用文本。 |
| GetRepliesCount | Number | 返回批注回复的数量。 |
| GetReply | ApiCommentReply | 返回指定的批注回复。 |
| GetText | string | 返回批注文本。 |
| GetTime | Number | 返回批注创建时间戳(当前时区格式)。 |
| GetTimeUTC | Number | 返回批注创建时间戳(UTC 格式)。 |
| GetUserId | string | 返回批注作者的用户 ID。 |
| IsSolved | boolean | 检查批注是否已解决。 |
| RemoveReplies | 无 | 删除指定的批注回复。 |
| SetAuthorName | 无 | 设置批注作者的姓名。 |
| SetSolved | 无 | 将批注标记为已解决。 |
| SetText | 无 | 设置批注文本。 |
| SetTime | 无 | 设置批注创建时间戳(当前时区格式)。 |
| SetTimeUTC | 无 | 设置批注创建时间戳(UTC 格式)。 |
| SetUserId | 无 | 设置批注作者的用户 ID。 |