getCallStatsMap method

Future<QueryCallStatsMapResponse?> getCallStatsMap(
  1. String callType,
  2. String callId,
  3. String session, {
  4. DateTime? startTime,
  5. DateTime? endTime,
  6. bool? excludePublishers,
  7. bool? excludeSubscribers,
  8. bool? excludeSfus,
})

Map call participants by location

Parameters:

Implementation

Future<QueryCallStatsMapResponse?> getCallStatsMap(
  String callType,
  String callId,
  String session, {
  DateTime? startTime,
  DateTime? endTime,
  bool? excludePublishers,
  bool? excludeSubscribers,
  bool? excludeSfus,
}) async {
  final response = await getCallStatsMapWithHttpInfo(
    callType,
    callId,
    session,
    startTime: startTime,
    endTime: endTime,
    excludePublishers: excludePublishers,
    excludeSubscribers: excludeSubscribers,
    excludeSfus: excludeSfus,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty &&
      response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(
      await _decodeBodyBytes(response),
      'QueryCallStatsMapResponse',
    ) as QueryCallStatsMapResponse;
  }
  return null;
}