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