refa: whisper detail

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-10 11:05:28 +08:00
parent 024e74115e
commit 024a249e6b
6 changed files with 635 additions and 616 deletions

View File

@@ -41,8 +41,28 @@ class ImGrpc {
);
}
static Future<LoadingState<SessionMainReply>> sessionMain(
{PbMap<int, Offset>? offset}) {
static Future<LoadingState<RspSessionMsg>> syncFetchSessionMsgs({
required int talkerId,
Int64? endSeqno,
Int64? beginSeqno,
}) {
return GrpcRepo.request(
GrpcUrl.syncFetchSessionMsgs,
ReqSessionMsg(
talkerId: Int64(talkerId),
sessionType: 1,
endSeqno: endSeqno,
beginSeqno: beginSeqno,
size: 20,
devId: '1',
),
RspSessionMsg.fromBuffer,
);
}
static Future<LoadingState<SessionMainReply>> sessionMain({
PbMap<int, Offset>? offset,
}) {
return GrpcRepo.request(
GrpcUrl.sessionMain,
SessionMainReq(