joinCall method
Future<DynamiteResponse<CallJoinCallResponseApplicationJson, void> >
joinCall({
- required String token,
- CallJoinCallFlags? flags,
- CallJoinCallForcePermissions? forcePermissions,
- int? silent,
- int? 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:
flags
In-Call flags.forcePermissions
In-call permissions.silent
Join the call silently. Defaults to0
.recordingConsent
When the user ticked a checkbox and agreed with being recorded (Only needed when theconfig => call => recording-consent
capability is set to {@see RecordingService::CONSENT_REQUIRED_YES} or the capability is {@see RecordingService::CONSENT_REQUIRED_OPTIONAL} and the conversationrecordingConsent
value is {@see RecordingService::CONSENT_REQUIRED_YES} ). Defaults to0
.apiVersion
Defaults tov4
.token
oCSAPIRequest
Required 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 DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<CallJoinCallResponseApplicationJson, void>> joinCall({
required String token,
CallJoinCallFlags? flags,
CallJoinCallForcePermissions? forcePermissions,
int? silent,
int? 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;
}