handleCall method
Future<GeneratedMessage>
handleCall(
- ServerContext ctx,
- String methodName,
- GeneratedMessage request
override
Dispatches the call. The request object should come from createRequest.
Implementation
$async.Future<$pb.GeneratedMessage> handleCall($pb.ServerContext ctx,
$core.String methodName, $pb.GeneratedMessage request) {
switch (methodName) {
case 'updatePermission':
return this
.updatePermission(ctx, request as $11.UpdatePermissionRequest);
case 'getPeerData':
return this.getPeerData(ctx, request as $11.GetPeerDataRequest);
case 'sendData':
return this.sendData(ctx, request as $11.SendDataRequest);
case 'sendRecorderMsg':
return this.sendRecorderMsg(ctx, request as $11.RecorderMsgRequest);
case 'registerRecorder':
return this
.registerRecorder(ctx, request as $11.RegisterRecorderRequest);
case 'getSessionId':
return this.getSessionId(ctx, request as $11.GetSessionIdRequest);
default:
throw $core.ArgumentError('Unknown method: $methodName');
}
}