queryCallSessionParticipantStatsWithHttpInfo method
Query call participant statistics
Note: This method returns the HTTP Response.
Parameters:
-
String callType (required):
-
String callId (required):
-
String session (required):
-
List<SortParamRequest> sort:
-
Map<String, Object> filterConditions:
-
int limit:
-
String prev:
-
String next:
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,
);
}