updateConferenceInfo static method

Future<TUIActionCallback> updateConferenceInfo(
  1. String roomId, {
  2. String? roomName,
  3. int? scheduleStartTime,
  4. int? scheduleEndTime,
})

Implementation

static Future<TUIActionCallback> updateConferenceInfo(String roomId,
    {String? roomName, int? scheduleStartTime, int? scheduleEndTime}) {
  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);
  TUIConferenceInfo conferenceInfo =
      TUIConferenceInfo(basicRoomInfo: TUIRoomInfo(roomId: roomId));
  int modifyFlag = 0;
  if (roomName != null) {
    modifyFlag |= TUIConferenceModifyFlag.roomName.value();
    conferenceInfo.basicRoomInfo.name = roomName;
  }
  if (scheduleStartTime != null) {
    modifyFlag |= TUIConferenceModifyFlag.scheduleStartTime.value();
    conferenceInfo.scheduleStartTime = scheduleStartTime;
  }
  if (scheduleEndTime != null) {
    modifyFlag |= TUIConferenceModifyFlag.scheduleEndTime.value();
    conferenceInfo.scheduleEndTime = scheduleEndTime;
  }

  _engineSDK.Dart_UpdateConferenceInfo(
      _conferenceListFFIPointer!,
      Tools.string2PointerChar(json.encode(conferenceInfo.toJson())),
      modifyFlag,
      Tools.string2PointerChar(userData));
  return completer.future;
}