PowerSensorServiceBase constructor
PowerSensorServiceBase()
Implementation
PowerSensorServiceBase() {
$addMethod($grpc.ServiceMethod<$27.GetVoltageRequest, $27.GetVoltageResponse>(
'GetVoltage',
getVoltage_Pre,
false,
false,
($core.List<$core.int> value) => $27.GetVoltageRequest.fromBuffer(value),
($27.GetVoltageResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$27.GetCurrentRequest, $27.GetCurrentResponse>(
'GetCurrent',
getCurrent_Pre,
false,
false,
($core.List<$core.int> value) => $27.GetCurrentRequest.fromBuffer(value),
($27.GetCurrentResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$27.GetPowerRequest, $27.GetPowerResponse>(
'GetPower',
getPower_Pre,
false,
false,
($core.List<$core.int> value) => $27.GetPowerRequest.fromBuffer(value),
($27.GetPowerResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$14.GetReadingsRequest, $14.GetReadingsResponse>(
'GetReadings',
getReadings_Pre,
false,
false,
($core.List<$core.int> value) => $14.GetReadingsRequest.fromBuffer(value),
($14.GetReadingsResponse 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()));
}