takeUserOnSeatByAdmin method

TUIRequest takeUserOnSeatByAdmin(
  1. int seatIndex,
  2. String userId,
  3. int timeout,
  4. TUIRequestCallback? requestCallback,
)

Implementation

TUIRequest takeUserOnSeatByAdmin(int seatIndex, String userId, int timeout,
    TUIRequestCallback? requestCallback) {
  String userData = Tools.generateUserData();
  if (requestCallback != null) {
    _requestCallbackMap.addAll({userData: requestCallback});
  }
  var nativeRequest = _engineSDK.Dart_TakeUserOnSeatByAdmin(
      _engineFFIPointer,
      seatIndex,
      Tools.string2PointerChar(userId),
      timeout,
      Tools.string2PointerChar(userData));
  Map<String, dynamic> map =
      json.decode(Tools.pointerChar2String(nativeRequest));
  calloc.free(nativeRequest);
  return TUIRequest.fromJson(map);
}