replace grpc to dio (#313)

* replace grpc to dio

* load danmaku from grpc
This commit is contained in:
My-Responsitories
2025-02-24 06:55:28 +00:00
committed by GitHub
parent 9e242fb902
commit 347a704b54
14 changed files with 247 additions and 2327 deletions

View File

@@ -1,299 +0,0 @@
//
// Generated code. Do not modify.
// source: bilibili/app/dynamic/v1/dynamic.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'dynamic.pb.dart' as $0;
export 'dynamic.pb.dart';
@$pb.GrpcServiceName('bilibili.app.dynamic.v1.Dynamic')
class DynamicClient extends $grpc.Client {
static final _$dynVideo = $grpc.ClientMethod<$0.DynVideoReq, $0.DynVideoReqReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynVideo',
($0.DynVideoReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DynVideoReqReply.fromBuffer(value));
static final _$dynDetails = $grpc.ClientMethod<$0.DynDetailsReq, $0.DynDetailsReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynDetails',
($0.DynDetailsReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DynDetailsReply.fromBuffer(value));
static final _$sVideo = $grpc.ClientMethod<$0.SVideoReq, $0.SVideoReply>(
'/bilibili.app.dynamic.v1.Dynamic/SVideo',
($0.SVideoReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.SVideoReply.fromBuffer(value));
static final _$dynTab = $grpc.ClientMethod<$0.DynTabReq, $0.DynTabReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynTab',
($0.DynTabReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DynTabReply.fromBuffer(value));
static final _$dynOurCitySwitch = $grpc.ClientMethod<$0.DynOurCitySwitchReq, $0.NoReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynOurCitySwitch',
($0.DynOurCitySwitchReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.NoReply.fromBuffer(value));
static final _$dynOurCity = $grpc.ClientMethod<$0.DynOurCityReq, $0.DynOurCityReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynOurCity',
($0.DynOurCityReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DynOurCityReply.fromBuffer(value));
static final _$dynVideoPersonal = $grpc.ClientMethod<$0.DynVideoPersonalReq, $0.DynVideoPersonalReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynVideoPersonal',
($0.DynVideoPersonalReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DynVideoPersonalReply.fromBuffer(value));
static final _$dynUpdOffset = $grpc.ClientMethod<$0.DynUpdOffsetReq, $0.NoReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynUpdOffset',
($0.DynUpdOffsetReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.NoReply.fromBuffer(value));
static final _$dynRed = $grpc.ClientMethod<$0.DynRedReq, $0.DynRedReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynRed',
($0.DynRedReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DynRedReply.fromBuffer(value));
static final _$dynMixUpListViewMore = $grpc.ClientMethod<$0.NoReq, $0.DynMixUpListViewMoreReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynMixUpListViewMore',
($0.NoReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DynMixUpListViewMoreReply.fromBuffer(value));
static final _$dynMixUpListSearch = $grpc.ClientMethod<$0.DynMixUpListSearchReq, $0.DynMixUpListSearchReply>(
'/bilibili.app.dynamic.v1.Dynamic/DynMixUpListSearch',
($0.DynMixUpListSearchReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DynMixUpListSearchReply.fromBuffer(value));
static final _$ourCityClickReport = $grpc.ClientMethod<$0.OurCityClickReportReq, $0.OurCityClickReportReply>(
'/bilibili.app.dynamic.v1.Dynamic/OurCityClickReport',
($0.OurCityClickReportReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.OurCityClickReportReply.fromBuffer(value));
static final _$geoCoder = $grpc.ClientMethod<$0.GeoCoderReq, $0.GeoCoderReply>(
'/bilibili.app.dynamic.v1.Dynamic/GeoCoder',
($0.GeoCoderReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.GeoCoderReply.fromBuffer(value));
DynamicClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);
$grpc.ResponseFuture<$0.DynVideoReqReply> dynVideo($0.DynVideoReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynVideo, request, options: options);
}
$grpc.ResponseFuture<$0.DynDetailsReply> dynDetails($0.DynDetailsReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynDetails, request, options: options);
}
$grpc.ResponseFuture<$0.SVideoReply> sVideo($0.SVideoReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$sVideo, request, options: options);
}
$grpc.ResponseFuture<$0.DynTabReply> dynTab($0.DynTabReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynTab, request, options: options);
}
$grpc.ResponseFuture<$0.NoReply> dynOurCitySwitch($0.DynOurCitySwitchReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynOurCitySwitch, request, options: options);
}
$grpc.ResponseFuture<$0.DynOurCityReply> dynOurCity($0.DynOurCityReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynOurCity, request, options: options);
}
$grpc.ResponseFuture<$0.DynVideoPersonalReply> dynVideoPersonal($0.DynVideoPersonalReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynVideoPersonal, request, options: options);
}
$grpc.ResponseFuture<$0.NoReply> dynUpdOffset($0.DynUpdOffsetReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynUpdOffset, request, options: options);
}
$grpc.ResponseFuture<$0.DynRedReply> dynRed($0.DynRedReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynRed, request, options: options);
}
$grpc.ResponseFuture<$0.DynMixUpListViewMoreReply> dynMixUpListViewMore($0.NoReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynMixUpListViewMore, request, options: options);
}
$grpc.ResponseFuture<$0.DynMixUpListSearchReply> dynMixUpListSearch($0.DynMixUpListSearchReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dynMixUpListSearch, request, options: options);
}
$grpc.ResponseFuture<$0.OurCityClickReportReply> ourCityClickReport($0.OurCityClickReportReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$ourCityClickReport, request, options: options);
}
$grpc.ResponseFuture<$0.GeoCoderReply> geoCoder($0.GeoCoderReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$geoCoder, request, options: options);
}
}
@$pb.GrpcServiceName('bilibili.app.dynamic.v1.Dynamic')
abstract class DynamicServiceBase extends $grpc.Service {
$core.String get $name => 'bilibili.app.dynamic.v1.Dynamic';
DynamicServiceBase() {
$addMethod($grpc.ServiceMethod<$0.DynVideoReq, $0.DynVideoReqReply>(
'DynVideo',
dynVideo_Pre,
false,
false,
($core.List<$core.int> value) => $0.DynVideoReq.fromBuffer(value),
($0.DynVideoReqReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DynDetailsReq, $0.DynDetailsReply>(
'DynDetails',
dynDetails_Pre,
false,
false,
($core.List<$core.int> value) => $0.DynDetailsReq.fromBuffer(value),
($0.DynDetailsReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.SVideoReq, $0.SVideoReply>(
'SVideo',
sVideo_Pre,
false,
false,
($core.List<$core.int> value) => $0.SVideoReq.fromBuffer(value),
($0.SVideoReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DynTabReq, $0.DynTabReply>(
'DynTab',
dynTab_Pre,
false,
false,
($core.List<$core.int> value) => $0.DynTabReq.fromBuffer(value),
($0.DynTabReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DynOurCitySwitchReq, $0.NoReply>(
'DynOurCitySwitch',
dynOurCitySwitch_Pre,
false,
false,
($core.List<$core.int> value) => $0.DynOurCitySwitchReq.fromBuffer(value),
($0.NoReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DynOurCityReq, $0.DynOurCityReply>(
'DynOurCity',
dynOurCity_Pre,
false,
false,
($core.List<$core.int> value) => $0.DynOurCityReq.fromBuffer(value),
($0.DynOurCityReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DynVideoPersonalReq, $0.DynVideoPersonalReply>(
'DynVideoPersonal',
dynVideoPersonal_Pre,
false,
false,
($core.List<$core.int> value) => $0.DynVideoPersonalReq.fromBuffer(value),
($0.DynVideoPersonalReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DynUpdOffsetReq, $0.NoReply>(
'DynUpdOffset',
dynUpdOffset_Pre,
false,
false,
($core.List<$core.int> value) => $0.DynUpdOffsetReq.fromBuffer(value),
($0.NoReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DynRedReq, $0.DynRedReply>(
'DynRed',
dynRed_Pre,
false,
false,
($core.List<$core.int> value) => $0.DynRedReq.fromBuffer(value),
($0.DynRedReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.NoReq, $0.DynMixUpListViewMoreReply>(
'DynMixUpListViewMore',
dynMixUpListViewMore_Pre,
false,
false,
($core.List<$core.int> value) => $0.NoReq.fromBuffer(value),
($0.DynMixUpListViewMoreReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DynMixUpListSearchReq, $0.DynMixUpListSearchReply>(
'DynMixUpListSearch',
dynMixUpListSearch_Pre,
false,
false,
($core.List<$core.int> value) => $0.DynMixUpListSearchReq.fromBuffer(value),
($0.DynMixUpListSearchReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.OurCityClickReportReq, $0.OurCityClickReportReply>(
'OurCityClickReport',
ourCityClickReport_Pre,
false,
false,
($core.List<$core.int> value) => $0.OurCityClickReportReq.fromBuffer(value),
($0.OurCityClickReportReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.GeoCoderReq, $0.GeoCoderReply>(
'GeoCoder',
geoCoder_Pre,
false,
false,
($core.List<$core.int> value) => $0.GeoCoderReq.fromBuffer(value),
($0.GeoCoderReply value) => value.writeToBuffer()));
}
$async.Future<$0.DynVideoReqReply> dynVideo_Pre($grpc.ServiceCall call, $async.Future<$0.DynVideoReq> request) async {
return dynVideo(call, await request);
}
$async.Future<$0.DynDetailsReply> dynDetails_Pre($grpc.ServiceCall call, $async.Future<$0.DynDetailsReq> request) async {
return dynDetails(call, await request);
}
$async.Future<$0.SVideoReply> sVideo_Pre($grpc.ServiceCall call, $async.Future<$0.SVideoReq> request) async {
return sVideo(call, await request);
}
$async.Future<$0.DynTabReply> dynTab_Pre($grpc.ServiceCall call, $async.Future<$0.DynTabReq> request) async {
return dynTab(call, await request);
}
$async.Future<$0.NoReply> dynOurCitySwitch_Pre($grpc.ServiceCall call, $async.Future<$0.DynOurCitySwitchReq> request) async {
return dynOurCitySwitch(call, await request);
}
$async.Future<$0.DynOurCityReply> dynOurCity_Pre($grpc.ServiceCall call, $async.Future<$0.DynOurCityReq> request) async {
return dynOurCity(call, await request);
}
$async.Future<$0.DynVideoPersonalReply> dynVideoPersonal_Pre($grpc.ServiceCall call, $async.Future<$0.DynVideoPersonalReq> request) async {
return dynVideoPersonal(call, await request);
}
$async.Future<$0.NoReply> dynUpdOffset_Pre($grpc.ServiceCall call, $async.Future<$0.DynUpdOffsetReq> request) async {
return dynUpdOffset(call, await request);
}
$async.Future<$0.DynRedReply> dynRed_Pre($grpc.ServiceCall call, $async.Future<$0.DynRedReq> request) async {
return dynRed(call, await request);
}
$async.Future<$0.DynMixUpListViewMoreReply> dynMixUpListViewMore_Pre($grpc.ServiceCall call, $async.Future<$0.NoReq> request) async {
return dynMixUpListViewMore(call, await request);
}
$async.Future<$0.DynMixUpListSearchReply> dynMixUpListSearch_Pre($grpc.ServiceCall call, $async.Future<$0.DynMixUpListSearchReq> request) async {
return dynMixUpListSearch(call, await request);
}
$async.Future<$0.OurCityClickReportReply> ourCityClickReport_Pre($grpc.ServiceCall call, $async.Future<$0.OurCityClickReportReq> request) async {
return ourCityClickReport(call, await request);
}
$async.Future<$0.GeoCoderReply> geoCoder_Pre($grpc.ServiceCall call, $async.Future<$0.GeoCoderReq> request) async {
return geoCoder(call, await request);
}
$async.Future<$0.DynVideoReqReply> dynVideo($grpc.ServiceCall call, $0.DynVideoReq request);
$async.Future<$0.DynDetailsReply> dynDetails($grpc.ServiceCall call, $0.DynDetailsReq request);
$async.Future<$0.SVideoReply> sVideo($grpc.ServiceCall call, $0.SVideoReq request);
$async.Future<$0.DynTabReply> dynTab($grpc.ServiceCall call, $0.DynTabReq request);
$async.Future<$0.NoReply> dynOurCitySwitch($grpc.ServiceCall call, $0.DynOurCitySwitchReq request);
$async.Future<$0.DynOurCityReply> dynOurCity($grpc.ServiceCall call, $0.DynOurCityReq request);
$async.Future<$0.DynVideoPersonalReply> dynVideoPersonal($grpc.ServiceCall call, $0.DynVideoPersonalReq request);
$async.Future<$0.NoReply> dynUpdOffset($grpc.ServiceCall call, $0.DynUpdOffsetReq request);
$async.Future<$0.DynRedReply> dynRed($grpc.ServiceCall call, $0.DynRedReq request);
$async.Future<$0.DynMixUpListViewMoreReply> dynMixUpListViewMore($grpc.ServiceCall call, $0.NoReq request);
$async.Future<$0.DynMixUpListSearchReply> dynMixUpListSearch($grpc.ServiceCall call, $0.DynMixUpListSearchReq request);
$async.Future<$0.OurCityClickReportReply> ourCityClickReport($grpc.ServiceCall call, $0.OurCityClickReportReq request);
$async.Future<$0.GeoCoderReply> geoCoder($grpc.ServiceCall call, $0.GeoCoderReq request);
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,259 +0,0 @@
//
// Generated code. Do not modify.
// source: bilibili/main/community/reply/v1/reply.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'reply.pb.dart' as $0;
export 'reply.pb.dart';
@$pb.GrpcServiceName('bilibili.main.community.reply.v1.Reply')
class ReplyClient extends $grpc.Client {
static final _$mainList = $grpc.ClientMethod<$0.MainListReq, $0.MainListReply>(
'/bilibili.main.community.reply.v1.Reply/MainList',
($0.MainListReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.MainListReply.fromBuffer(value));
static final _$detailList = $grpc.ClientMethod<$0.DetailListReq, $0.DetailListReply>(
'/bilibili.main.community.reply.v1.Reply/DetailList',
($0.DetailListReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DetailListReply.fromBuffer(value));
static final _$dialogList = $grpc.ClientMethod<$0.DialogListReq, $0.DialogListReply>(
'/bilibili.main.community.reply.v1.Reply/DialogList',
($0.DialogListReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.DialogListReply.fromBuffer(value));
static final _$previewList = $grpc.ClientMethod<$0.PreviewListReq, $0.PreviewListReply>(
'/bilibili.main.community.reply.v1.Reply/PreviewList',
($0.PreviewListReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.PreviewListReply.fromBuffer(value));
static final _$searchItemPreHook = $grpc.ClientMethod<$0.SearchItemPreHookReq, $0.SearchItemPreHookReply>(
'/bilibili.main.community.reply.v1.Reply/SearchItemPreHook',
($0.SearchItemPreHookReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.SearchItemPreHookReply.fromBuffer(value));
static final _$searchItem = $grpc.ClientMethod<$0.SearchItemReq, $0.SearchItemReply>(
'/bilibili.main.community.reply.v1.Reply/SearchItem',
($0.SearchItemReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.SearchItemReply.fromBuffer(value));
static final _$atSearch = $grpc.ClientMethod<$0.AtSearchReq, $0.AtSearchReply>(
'/bilibili.main.community.reply.v1.Reply/AtSearch',
($0.AtSearchReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.AtSearchReply.fromBuffer(value));
static final _$replyInfo = $grpc.ClientMethod<$0.ReplyInfoReq, $0.ReplyInfoReply>(
'/bilibili.main.community.reply.v1.Reply/ReplyInfo',
($0.ReplyInfoReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.ReplyInfoReply.fromBuffer(value));
static final _$userCallback = $grpc.ClientMethod<$0.UserCallbackReq, $0.UserCallbackReply>(
'/bilibili.main.community.reply.v1.Reply/UserCallback',
($0.UserCallbackReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.UserCallbackReply.fromBuffer(value));
static final _$shareRepliesInfo = $grpc.ClientMethod<$0.ShareRepliesInfoReq, $0.ShareRepliesInfoResp>(
'/bilibili.main.community.reply.v1.Reply/ShareRepliesInfo',
($0.ShareRepliesInfoReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.ShareRepliesInfoResp.fromBuffer(value));
static final _$suggestEmotes = $grpc.ClientMethod<$0.SuggestEmotesReq, $0.SuggestEmotesResp>(
'/bilibili.main.community.reply.v1.Reply/SuggestEmotes',
($0.SuggestEmotesReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.SuggestEmotesResp.fromBuffer(value));
ReplyClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);
$grpc.ResponseFuture<$0.MainListReply> mainList($0.MainListReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$mainList, request, options: options);
}
$grpc.ResponseFuture<$0.DetailListReply> detailList($0.DetailListReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$detailList, request, options: options);
}
$grpc.ResponseFuture<$0.DialogListReply> dialogList($0.DialogListReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$dialogList, request, options: options);
}
$grpc.ResponseFuture<$0.PreviewListReply> previewList($0.PreviewListReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$previewList, request, options: options);
}
$grpc.ResponseFuture<$0.SearchItemPreHookReply> searchItemPreHook($0.SearchItemPreHookReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$searchItemPreHook, request, options: options);
}
$grpc.ResponseFuture<$0.SearchItemReply> searchItem($0.SearchItemReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$searchItem, request, options: options);
}
$grpc.ResponseFuture<$0.AtSearchReply> atSearch($0.AtSearchReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$atSearch, request, options: options);
}
$grpc.ResponseFuture<$0.ReplyInfoReply> replyInfo($0.ReplyInfoReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$replyInfo, request, options: options);
}
$grpc.ResponseFuture<$0.UserCallbackReply> userCallback($0.UserCallbackReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$userCallback, request, options: options);
}
$grpc.ResponseFuture<$0.ShareRepliesInfoResp> shareRepliesInfo($0.ShareRepliesInfoReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$shareRepliesInfo, request, options: options);
}
$grpc.ResponseFuture<$0.SuggestEmotesResp> suggestEmotes($0.SuggestEmotesReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$suggestEmotes, request, options: options);
}
}
@$pb.GrpcServiceName('bilibili.main.community.reply.v1.Reply')
abstract class ReplyServiceBase extends $grpc.Service {
$core.String get $name => 'bilibili.main.community.reply.v1.Reply';
ReplyServiceBase() {
$addMethod($grpc.ServiceMethod<$0.MainListReq, $0.MainListReply>(
'MainList',
mainList_Pre,
false,
false,
($core.List<$core.int> value) => $0.MainListReq.fromBuffer(value),
($0.MainListReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DetailListReq, $0.DetailListReply>(
'DetailList',
detailList_Pre,
false,
false,
($core.List<$core.int> value) => $0.DetailListReq.fromBuffer(value),
($0.DetailListReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DialogListReq, $0.DialogListReply>(
'DialogList',
dialogList_Pre,
false,
false,
($core.List<$core.int> value) => $0.DialogListReq.fromBuffer(value),
($0.DialogListReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.PreviewListReq, $0.PreviewListReply>(
'PreviewList',
previewList_Pre,
false,
false,
($core.List<$core.int> value) => $0.PreviewListReq.fromBuffer(value),
($0.PreviewListReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.SearchItemPreHookReq, $0.SearchItemPreHookReply>(
'SearchItemPreHook',
searchItemPreHook_Pre,
false,
false,
($core.List<$core.int> value) => $0.SearchItemPreHookReq.fromBuffer(value),
($0.SearchItemPreHookReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.SearchItemReq, $0.SearchItemReply>(
'SearchItem',
searchItem_Pre,
false,
false,
($core.List<$core.int> value) => $0.SearchItemReq.fromBuffer(value),
($0.SearchItemReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.AtSearchReq, $0.AtSearchReply>(
'AtSearch',
atSearch_Pre,
false,
false,
($core.List<$core.int> value) => $0.AtSearchReq.fromBuffer(value),
($0.AtSearchReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ReplyInfoReq, $0.ReplyInfoReply>(
'ReplyInfo',
replyInfo_Pre,
false,
false,
($core.List<$core.int> value) => $0.ReplyInfoReq.fromBuffer(value),
($0.ReplyInfoReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.UserCallbackReq, $0.UserCallbackReply>(
'UserCallback',
userCallback_Pre,
false,
false,
($core.List<$core.int> value) => $0.UserCallbackReq.fromBuffer(value),
($0.UserCallbackReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ShareRepliesInfoReq, $0.ShareRepliesInfoResp>(
'ShareRepliesInfo',
shareRepliesInfo_Pre,
false,
false,
($core.List<$core.int> value) => $0.ShareRepliesInfoReq.fromBuffer(value),
($0.ShareRepliesInfoResp value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.SuggestEmotesReq, $0.SuggestEmotesResp>(
'SuggestEmotes',
suggestEmotes_Pre,
false,
false,
($core.List<$core.int> value) => $0.SuggestEmotesReq.fromBuffer(value),
($0.SuggestEmotesResp value) => value.writeToBuffer()));
}
$async.Future<$0.MainListReply> mainList_Pre($grpc.ServiceCall call, $async.Future<$0.MainListReq> request) async {
return mainList(call, await request);
}
$async.Future<$0.DetailListReply> detailList_Pre($grpc.ServiceCall call, $async.Future<$0.DetailListReq> request) async {
return detailList(call, await request);
}
$async.Future<$0.DialogListReply> dialogList_Pre($grpc.ServiceCall call, $async.Future<$0.DialogListReq> request) async {
return dialogList(call, await request);
}
$async.Future<$0.PreviewListReply> previewList_Pre($grpc.ServiceCall call, $async.Future<$0.PreviewListReq> request) async {
return previewList(call, await request);
}
$async.Future<$0.SearchItemPreHookReply> searchItemPreHook_Pre($grpc.ServiceCall call, $async.Future<$0.SearchItemPreHookReq> request) async {
return searchItemPreHook(call, await request);
}
$async.Future<$0.SearchItemReply> searchItem_Pre($grpc.ServiceCall call, $async.Future<$0.SearchItemReq> request) async {
return searchItem(call, await request);
}
$async.Future<$0.AtSearchReply> atSearch_Pre($grpc.ServiceCall call, $async.Future<$0.AtSearchReq> request) async {
return atSearch(call, await request);
}
$async.Future<$0.ReplyInfoReply> replyInfo_Pre($grpc.ServiceCall call, $async.Future<$0.ReplyInfoReq> request) async {
return replyInfo(call, await request);
}
$async.Future<$0.UserCallbackReply> userCallback_Pre($grpc.ServiceCall call, $async.Future<$0.UserCallbackReq> request) async {
return userCallback(call, await request);
}
$async.Future<$0.ShareRepliesInfoResp> shareRepliesInfo_Pre($grpc.ServiceCall call, $async.Future<$0.ShareRepliesInfoReq> request) async {
return shareRepliesInfo(call, await request);
}
$async.Future<$0.SuggestEmotesResp> suggestEmotes_Pre($grpc.ServiceCall call, $async.Future<$0.SuggestEmotesReq> request) async {
return suggestEmotes(call, await request);
}
$async.Future<$0.MainListReply> mainList($grpc.ServiceCall call, $0.MainListReq request);
$async.Future<$0.DetailListReply> detailList($grpc.ServiceCall call, $0.DetailListReq request);
$async.Future<$0.DialogListReply> dialogList($grpc.ServiceCall call, $0.DialogListReq request);
$async.Future<$0.PreviewListReply> previewList($grpc.ServiceCall call, $0.PreviewListReq request);
$async.Future<$0.SearchItemPreHookReply> searchItemPreHook($grpc.ServiceCall call, $0.SearchItemPreHookReq request);
$async.Future<$0.SearchItemReply> searchItem($grpc.ServiceCall call, $0.SearchItemReq request);
$async.Future<$0.AtSearchReply> atSearch($grpc.ServiceCall call, $0.AtSearchReq request);
$async.Future<$0.ReplyInfoReply> replyInfo($grpc.ServiceCall call, $0.ReplyInfoReq request);
$async.Future<$0.UserCallbackReply> userCallback($grpc.ServiceCall call, $0.UserCallbackReq request);
$async.Future<$0.ShareRepliesInfoResp> shareRepliesInfo($grpc.ServiceCall call, $0.ShareRepliesInfoReq request);
$async.Future<$0.SuggestEmotesResp> suggestEmotes($grpc.ServiceCall call, $0.SuggestEmotesReq request);
}

View File

@@ -1,99 +0,0 @@
//
// Generated code. Do not modify.
// source: playeronline.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'playeronline.pb.dart' as $0;
export 'playeronline.pb.dart';
@$pb.GrpcServiceName('bilibili.app.playeronline.v1.PlayerOnline')
class PlayerOnlineClient extends $grpc.Client {
static final _$playerOnline = $grpc.ClientMethod<$0.PlayerOnlineReq, $0.PlayerOnlineReply>(
'/bilibili.app.playeronline.v1.PlayerOnline/PlayerOnline',
($0.PlayerOnlineReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.PlayerOnlineReply.fromBuffer(value));
static final _$premiereInfo = $grpc.ClientMethod<$0.PremiereInfoReq, $0.PremiereInfoReply>(
'/bilibili.app.playeronline.v1.PlayerOnline/PremiereInfo',
($0.PremiereInfoReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.PremiereInfoReply.fromBuffer(value));
static final _$reportWatch = $grpc.ClientMethod<$0.ReportWatchReq, $0.NoReply>(
'/bilibili.app.playeronline.v1.PlayerOnline/ReportWatch',
($0.ReportWatchReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.NoReply.fromBuffer(value));
PlayerOnlineClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);
$grpc.ResponseFuture<$0.PlayerOnlineReply> playerOnline($0.PlayerOnlineReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$playerOnline, request, options: options);
}
$grpc.ResponseFuture<$0.PremiereInfoReply> premiereInfo($0.PremiereInfoReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$premiereInfo, request, options: options);
}
$grpc.ResponseFuture<$0.NoReply> reportWatch($0.ReportWatchReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$reportWatch, request, options: options);
}
}
@$pb.GrpcServiceName('bilibili.app.playeronline.v1.PlayerOnline')
abstract class PlayerOnlineServiceBase extends $grpc.Service {
$core.String get $name => 'bilibili.app.playeronline.v1.PlayerOnline';
PlayerOnlineServiceBase() {
$addMethod($grpc.ServiceMethod<$0.PlayerOnlineReq, $0.PlayerOnlineReply>(
'PlayerOnline',
playerOnline_Pre,
false,
false,
($core.List<$core.int> value) => $0.PlayerOnlineReq.fromBuffer(value),
($0.PlayerOnlineReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.PremiereInfoReq, $0.PremiereInfoReply>(
'PremiereInfo',
premiereInfo_Pre,
false,
false,
($core.List<$core.int> value) => $0.PremiereInfoReq.fromBuffer(value),
($0.PremiereInfoReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ReportWatchReq, $0.NoReply>(
'ReportWatch',
reportWatch_Pre,
false,
false,
($core.List<$core.int> value) => $0.ReportWatchReq.fromBuffer(value),
($0.NoReply value) => value.writeToBuffer()));
}
$async.Future<$0.PlayerOnlineReply> playerOnline_Pre($grpc.ServiceCall call, $async.Future<$0.PlayerOnlineReq> request) async {
return playerOnline(call, await request);
}
$async.Future<$0.PremiereInfoReply> premiereInfo_Pre($grpc.ServiceCall call, $async.Future<$0.PremiereInfoReq> request) async {
return premiereInfo(call, await request);
}
$async.Future<$0.NoReply> reportWatch_Pre($grpc.ServiceCall call, $async.Future<$0.ReportWatchReq> request) async {
return reportWatch(call, await request);
}
$async.Future<$0.PlayerOnlineReply> playerOnline($grpc.ServiceCall call, $0.PlayerOnlineReq request);
$async.Future<$0.PremiereInfoReply> premiereInfo($grpc.ServiceCall call, $0.PremiereInfoReq request);
$async.Future<$0.NoReply> reportWatch($grpc.ServiceCall call, $0.ReportWatchReq request);
}

View File

@@ -1,59 +0,0 @@
//
// Generated code. Do not modify.
// source: bilibili/app/show/popular/v1/popular.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'popular.pb.dart' as $0;
export 'popular.pb.dart';
@$pb.GrpcServiceName('bilibili.app.show.v1.Popular')
class PopularClient extends $grpc.Client {
static final _$index = $grpc.ClientMethod<$0.PopularResultReq, $0.PopularReply>(
'/bilibili.app.show.v1.Popular/Index',
($0.PopularResultReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.PopularReply.fromBuffer(value));
PopularClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options,
interceptors: interceptors);
$grpc.ResponseFuture<$0.PopularReply> index($0.PopularResultReq request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$index, request, options: options);
}
}
@$pb.GrpcServiceName('bilibili.app.show.v1.Popular')
abstract class PopularServiceBase extends $grpc.Service {
$core.String get $name => 'bilibili.app.show.v1.Popular';
PopularServiceBase() {
$addMethod($grpc.ServiceMethod<$0.PopularResultReq, $0.PopularReply>(
'Index',
index_Pre,
false,
false,
($core.List<$core.int> value) => $0.PopularResultReq.fromBuffer(value),
($0.PopularReply value) => value.writeToBuffer()));
}
$async.Future<$0.PopularReply> index_Pre($grpc.ServiceCall call, $async.Future<$0.PopularResultReq> request) async {
return index(call, await request);
}
$async.Future<$0.PopularReply> index($grpc.ServiceCall call, $0.PopularResultReq request);
}