跳到主要内容

ApiCommentReply

表示批注回复的类。

属性​

名称类型描述
AuthorNamestring返回或设置批注回复作者的姓名。
Textstring返回或设置批注回复文本。
Timenumber | string返回或设置当前时区格式的批注回复创建时间戳。
TimeUTCnumber | string返回或设置 UTC 格式的批注回复创建时间戳。
UserIdstring返回或设置批注回复作者的用户 ID。

方法​

下表列出了可用的方法。

方法返回值描述
GetAuthorNamestring返回批注回复作者的姓名。
GetClassType"commentReply"返回 ApiCommentReply 类的类型。
GetTextstring返回批注回复文本。
GetTimeNumber返回当前时区格式的批注回复创建时间戳。
GetTimeUTCNumber返回 UTC 格式的批注回复创建时间戳。
GetUserIdstring返回批注回复作者的用户 ID。
SetAuthorName无设置批注回复作者的姓名。
SetText无设置批注回复文本。
SetTime无设置当前时区格式的批注回复创建时间戳。
SetTimeUTC无设置 UTC 格式的批注回复创建时间戳。
SetUserId无设置批注回复作者的用户 ID。