mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 18:46:53 +08:00
opt get pgc follow status
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
18
lib/grpc/view.dart
Normal file
18
lib/grpc/view.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:PiliPlus/grpc/bilibili/app/viewunite/v1.pb.dart'
|
||||
show ViewReq, ViewReply;
|
||||
import 'package:PiliPlus/grpc/grpc_repo.dart';
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
|
||||
class ViewGrpc {
|
||||
static Future<LoadingState<ViewReply>> view({
|
||||
required String bvid,
|
||||
}) {
|
||||
return GrpcRepo.request(
|
||||
GrpcUrl.view,
|
||||
ViewReq(
|
||||
bvid: bvid,
|
||||
),
|
||||
ViewReply.fromBuffer,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user