queryCallParticipantSessionsWithHttpInfo method

Future<Response> queryCallParticipantSessionsWithHttpInfo(
  1. String type,
  2. String id,
  3. String session, {
  4. int? limit,
  5. String? prev,
  6. String? next,
  7. Map<String, Object>? filterConditions,
})

Query call participant sessions

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> queryCallParticipantSessionsWithHttpInfo(
  String type,
  String id,
  String session, {
  int? limit,
  String? prev,
  String? next,
  Map<String, Object>? filterConditions,
}) async {
  // ignore: prefer_const_declarations
  final path =
      r'/video/call/{type}/{id}/session/{session}/participant_sessions'
          .replaceAll('{type}', type)
          .replaceAll('{id}', id)
          .replaceAll('{session}', session);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (prev != null) {
    queryParams.addAll(_queryParams('', 'prev', prev));
  }
  if (next != null) {
    queryParams.addAll(_queryParams('', 'next', next));
  }
  if (filterConditions != null) {
    queryParams
        .addAll(_queryParams('', 'filter_conditions', filterConditions));
  }

  const contentTypes = <String>[];

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