mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-17 23:56:13 +08:00
19 lines
425 B
Dart
19 lines
425 B
Dart
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,
|
|
);
|
|
}
|
|
}
|