getCallSessionParticipantStatsTimelineWithHttpInfo method

Future<Response> getCallSessionParticipantStatsTimelineWithHttpInfo(
  1. String callType,
  2. String callId,
  3. String session,
  4. String user,
  5. String userSession, {
  6. String? startTime,
  7. String? endTime,
  8. List<String>? severity,
})

Get participant timeline events

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getCallSessionParticipantStatsTimelineWithHttpInfo(
  String callType,
  String callId,
  String session,
  String user,
  String userSession, {
  String? startTime,
  String? endTime,
  List<String>? severity,
}) async {
  // ignore: prefer_const_declarations
  final path =
      r'/video/call_stats/{call_type}/{call_id}/{session}/participants/{user}/{user_session}/timeline'
          .replaceAll('{call_type}', callType)
          .replaceAll('{call_id}', callId)
          .replaceAll('{session}', session)
          .replaceAll('{user}', user)
          .replaceAll('{user_session}', userSession);

  // 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 (severity != null) {
    queryParams.addAll(_queryParams('multi', 'severity', severity));
  }

  const contentTypes = <String>[];

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