getCallStatsMapWithHttpInfo method

Future<Response> getCallStatsMapWithHttpInfo(
  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

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getCallStatsMapWithHttpInfo(
  String callType,
  String callId,
  String session, {
  DateTime? startTime,
  DateTime? endTime,
  bool? excludePublishers,
  bool? excludeSubscribers,
  bool? excludeSfus,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/video/call_stats/{call_type}/{call_id}/{session}/map'
      .replaceAll('{call_type}', callType)
      .replaceAll('{call_id}', callId)
      .replaceAll('{session}', session);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (startTime != null) {
    queryParams.addAll(_queryParams('', 'start_time', startTime));
  }
  if (endTime != null) {
    queryParams.addAll(_queryParams('', 'end_time', endTime));
  }
  if (excludePublishers != null) {
    queryParams
        .addAll(_queryParams('', 'exclude_publishers', excludePublishers));
  }
  if (excludeSubscribers != null) {
    queryParams
        .addAll(_queryParams('', 'exclude_subscribers', excludeSubscribers));
  }
  if (excludeSfus != null) {
    queryParams.addAll(_queryParams('', 'exclude_sfus', excludeSfus));
  }

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}