MotorServiceBase constructor
MotorServiceBase()
Implementation
MotorServiceBase() {
$addMethod($grpc.ServiceMethod<$24.SetPowerRequest, $24.SetPowerResponse>(
'SetPower',
setPower_Pre,
false,
false,
($core.List<$core.int> value) => $24.SetPowerRequest.fromBuffer(value),
($24.SetPowerResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$24.GoForRequest, $24.GoForResponse>(
'GoFor',
goFor_Pre,
false,
false,
($core.List<$core.int> value) => $24.GoForRequest.fromBuffer(value),
($24.GoForResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$24.GoToRequest, $24.GoToResponse>(
'GoTo',
goTo_Pre,
false,
false,
($core.List<$core.int> value) => $24.GoToRequest.fromBuffer(value),
($24.GoToResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$24.SetRPMRequest, $24.SetRPMResponse>(
'SetRPM',
setRPM_Pre,
false,
false,
($core.List<$core.int> value) => $24.SetRPMRequest.fromBuffer(value),
($24.SetRPMResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$24.ResetZeroPositionRequest, $24.ResetZeroPositionResponse>(
'ResetZeroPosition',
resetZeroPosition_Pre,
false,
false,
($core.List<$core.int> value) => $24.ResetZeroPositionRequest.fromBuffer(value),
($24.ResetZeroPositionResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$24.GetPositionRequest, $24.GetPositionResponse>(
'GetPosition',
getPosition_Pre,
false,
false,
($core.List<$core.int> value) => $24.GetPositionRequest.fromBuffer(value),
($24.GetPositionResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$24.GetPropertiesRequest, $24.GetPropertiesResponse>(
'GetProperties',
getProperties_Pre,
false,
false,
($core.List<$core.int> value) => $24.GetPropertiesRequest.fromBuffer(value),
($24.GetPropertiesResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$24.StopRequest, $24.StopResponse>(
'Stop',
stop_Pre,
false,
false,
($core.List<$core.int> value) => $24.StopRequest.fromBuffer(value),
($24.StopResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$24.IsPoweredRequest, $24.IsPoweredResponse>(
'IsPowered',
isPowered_Pre,
false,
false,
($core.List<$core.int> value) => $24.IsPoweredRequest.fromBuffer(value),
($24.IsPoweredResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$24.IsMovingRequest, $24.IsMovingResponse>(
'IsMoving',
isMoving_Pre,
false,
false,
($core.List<$core.int> value) => $24.IsMovingRequest.fromBuffer(value),
($24.IsMovingResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$14.DoCommandRequest, $14.DoCommandResponse>(
'DoCommand',
doCommand_Pre,
false,
false,
($core.List<$core.int> value) => $14.DoCommandRequest.fromBuffer(value),
($14.DoCommandResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$14.GetGeometriesRequest, $14.GetGeometriesResponse>(
'GetGeometries',
getGeometries_Pre,
false,
false,
($core.List<$core.int> value) => $14.GetGeometriesRequest.fromBuffer(value),
($14.GetGeometriesResponse value) => value.writeToBuffer()));
}