mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
feat: session secondary
Closes #837 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
29
lib/grpc/dyn.dart
Normal file
29
lib/grpc/dyn.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:PiliPlus/grpc/bilibili/app/dynamic/v1.pb.dart';
|
||||
import 'package:PiliPlus/grpc/grpc_repo.dart';
|
||||
|
||||
class DynGrpc {
|
||||
// static Future dynSpace({
|
||||
// required int uid,
|
||||
// required int page,
|
||||
// }) {
|
||||
// return _request(
|
||||
// GrpcUrl.dynSpace,
|
||||
// DynSpaceReq(
|
||||
// hostUid: Int64(uid),
|
||||
// localTime: 8,
|
||||
// page: Int64(page),
|
||||
// from: 'space',
|
||||
// ),
|
||||
// DynSpaceRsp.fromBuffer,
|
||||
// );
|
||||
// }
|
||||
|
||||
static Future dynRed() {
|
||||
return GrpcRepo.request(
|
||||
GrpcUrl.dynRed,
|
||||
DynRedReq(tabOffset: [TabOffset(tab: 1)]),
|
||||
DynRedReply.fromBuffer,
|
||||
onSuccess: (response) => response.dynRedItem.count.toInt(),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user