feat: more subtitle

This commit is contained in:
My-Responsitories
2026-06-23 16:07:43 +08:00
parent 9d6d3d524c
commit fa69955b76
5 changed files with 65 additions and 22 deletions

View File

@@ -21,4 +21,12 @@ abstract final class DmGrpc {
isolate: true,
);
}
static Future<LoadingState<DmViewReply>> dmView(int aid, int cid) {
return GrpcReq.request(
GrpcUrl.dmView,
DmViewReq(pid: Int64(aid), oid: Int64(cid), type: 1),
DmViewReply.fromBuffer,
);
}
}

View File

@@ -14,6 +14,7 @@ abstract final class GrpcUrl {
// danmaku
static const dmSegMobile = '/bilibili.community.service.dm.v1.DM/DmSegMobile';
static const dmView = '/bilibili.community.service.dm.v1.DM/DmView';
// reply
static const reply = '/bilibili.main.community.reply.v1.Reply';