updateConferenceInfo static method
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;
}