mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
opt: unread & zan grpc & readlist open with browser (#852)
* opt: unread * opt: zan grpc * feat: readlist open with browser
This commit is contained in:
committed by
GitHub
parent
8d34e6f340
commit
72734d4b4e
@@ -62,6 +62,7 @@ class GrpcUrl {
|
||||
static const keywordBlockingAdd = '$im2/KeywordBlockingAdd';
|
||||
static const keywordBlockingDelete = '$im2/KeywordBlockingDelete';
|
||||
static const syncFetchSessionMsgs = '$im/SyncFetchSessionMsgs';
|
||||
static const getTotalUnread = '$im/GetTotalUnread';
|
||||
}
|
||||
|
||||
class GrpcRepo {
|
||||
|
||||
@@ -199,4 +199,13 @@ class ImGrpc {
|
||||
KeywordBlockingDeleteReply.fromBuffer,
|
||||
);
|
||||
}
|
||||
|
||||
static Future<LoadingState<RspTotalUnread>> getTotalUnread(
|
||||
{int? unreadType}) {
|
||||
return GrpcRepo.request(
|
||||
GrpcUrl.getTotalUnread,
|
||||
ReqTotalUnread(unreadType: unreadType, showUnfollowList: 1),
|
||||
RspTotalUnread.fromBuffer,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user