queryCallSessionParticipantStatsWithHttpInfo method

Future<Response> queryCallSessionParticipantStatsWithHttpInfo(
  1. String callType,
  2. String callId,
  3. String session, {
  4. List<SortParamRequest>? sort,
  5. Map<String, Object>? filterConditions,
  6. int? limit,
  7. String? prev,
  8. String? next,
})

Query call participant statistics

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> queryCallSessionParticipantStatsWithHttpInfo(
  String callType,
  String callId,
  String session, {
  List<SortParamRequest>? sort,
  Map<String, Object>? filterConditions,
  int? limit,
  String? prev,
  String? next,
}) async {
  // ignore: prefer_const_declarations
  final path =
      r'/video/call_stats/{call_type}/{call_id}/{session}/participants'
          .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 (sort != null) {
    queryParams.addAll(_queryParams('multi', 'sort', sort));
  }
  if (filterConditions != null) {
    queryParams
        .addAll(_queryParams('', 'filter_conditions', filterConditions));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (prev != null) {
    queryParams.addAll(_queryParams('', 'prev', prev));
  }
  if (next != null) {
    queryParams.addAll(_queryParams('', 'next', next));
  }

  const contentTypes = <String>[];

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