acceptParticipant method
void
acceptParticipant({
- required RemoteActivityData? request,
- required bool accept,
- bool acceptAll = false,
Implementation
void acceptParticipant(
{required RemoteActivityData? request,
required bool accept,
bool acceptAll = false}) {
if (request == null) return;
Map<String, dynamic> body = {
"meeting_uid": meetingDetails.meetingUid,
};
if (!acceptAll) {
body["request_id"] = request.requestId;
body["is_admit"] = accept;
} else {
body["is_admit_all"] = acceptAll;
}
networkRequestHandler(
apiCall: () => apiClient.acceptParticipantInLobby(body),
onSuccess: (_) {},
onError: (message) => sendMessageToUI(message));
}