getCallStatsMapWithHttpInfo method
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,
);
}