staticCall method

AsyncReply staticCall(
  1. Guid classId,
  2. int index,
  3. Map<UInt8, dynamic> parameters
)

Implementation

AsyncReply<dynamic> staticCall(
    Guid classId, int index, Map<UInt8, dynamic> parameters) {
  var pb = Codec.compose(parameters, this);

  var reply = AsyncReply<dynamic>();
  var c = _callbackCounter++;
  _requests.add(c, reply);

  _sendParams()
    ..addUint8((0x40 | IIPPacketAction.StaticCall))
    ..addUint32(c)
    ..addGuid(classId)
    ..addUint8(index)
    ..addDC(pb)
    ..done();

  return reply;
}