public static class CommentRequest.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
CommentRequest.Builder |
atInfoList(CommentAtInfo[] atInfoList)
评论中艾特人信息
示例值:
|
CommentRequest |
build() |
CommentRequest.Builder |
commentId(String commentId)
评论 ID。
|
CommentRequest.Builder |
content(String content)
评论内容,JSON 格式,传入时需要压缩转义为字符串。
|
CommentRequest.Builder |
disableBot(Boolean disableBot)
是否不启用 Bot,取值为 true 时只同步数据,不触发 Bot。
|
CommentRequest.Builder |
extra(String extra)
附加字段,JSON 格式,传入时需要压缩转义为字符串。
|
CommentRequest.Builder |
parentCommentId(String parentCommentId)
父评论 ID,如果是回复评论,需要传入该值。
|
public CommentRequest.Builder content(String content)
示例值:{\"text\":\"@username艾特展示\",\"files\":[{\"url\":\"xxx\",\"fileSize\":155149,\"title\":\"9a9fedc5cfb01a4a20c715098.png\",\"type\":\"image\",\"extra\":\"\"}]}
content - public CommentRequest.Builder atInfoList(CommentAtInfo[] atInfoList)
示例值:
atInfoList - public CommentRequest.Builder parentCommentId(String parentCommentId)
示例值:7081516627711524883
parentCommentId - public CommentRequest.Builder commentId(String commentId)
示例值:7081516627711524883
commentId - public CommentRequest.Builder disableBot(Boolean disableBot)
示例值:false
disableBot - public CommentRequest.Builder extra(String extra)
示例值:{\"a\":\"a\"}
extra - public CommentRequest build()
Copyright © 2026. All rights reserved.