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