mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-17 07:36:14 +08:00
30 lines
714 B
Dart
30 lines
714 B
Dart
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<int?> dynRed() async {
|
|
final res = await GrpcRepo.request(
|
|
GrpcUrl.dynRed,
|
|
DynRedReq(tabOffset: [TabOffset(tab: 1)]),
|
|
DynRedReply.fromBuffer,
|
|
);
|
|
return res.dataOrNull?.dynRedItem.count.toInt();
|
|
}
|
|
}
|