joinCall method
Future<DynamiteResponse<CallJoinCallResponseApplicationJson, void> >
joinCall({
- required String token,
- CallJoinCallFlags? flags,
- CallJoinCallForcePermissions? forcePermissions,
- CallJoinCallSilent? silent,
- CallJoinCallRecordingConsent? recordingConsent,
- CallJoinCallApiVersion? apiVersion,
- bool? oCSAPIRequest,
Join a call.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers.
Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
flagsIn-Call flags.forcePermissionsIn-call permissions.silentJoin the call silently. Defaults to0.recordingConsentWhen the user ticked a checkbox and agreed with being recorded (Only needed when theconfig => call => recording-consentcapability is set to {@see RecordingService::CONSENT_REQUIRED_YES} or the capability is {@see RecordingService::CONSENT_REQUIRED_OPTIONAL} and the conversationrecordingConsentvalue is {@see RecordingService::CONSENT_REQUIRED_YES} ). Defaults to0.apiVersionDefaults tov4.tokenoCSAPIRequestRequired to be true for the API request to pass. Defaults totrue.
Status codes:
- 200: Call joined successfully
- 404: Call not found
- 400: No recording consent was given
See:
- joinCallRaw for an experimental operation that returns a
DynamiteRawResponsethat can be serialized.
Implementation
Future<_i1.DynamiteResponse<CallJoinCallResponseApplicationJson, void>> joinCall({
required String token,
CallJoinCallFlags? flags,
CallJoinCallForcePermissions? forcePermissions,
CallJoinCallSilent? silent,
CallJoinCallRecordingConsent? recordingConsent,
CallJoinCallApiVersion? apiVersion,
bool? oCSAPIRequest,
}) async {
final rawResponse = joinCallRaw(
token: token,
flags: flags,
forcePermissions: forcePermissions,
silent: silent,
recordingConsent: recordingConsent,
apiVersion: apiVersion,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}