getCallWithHttpInfo method

Future<Response> getCallWithHttpInfo(
  1. String type,
  2. String id, {
  3. String? connectionId,
  4. int? membersLimit,
  5. bool? ring,
  6. bool? notify,
  7. bool? video,
})

Get Call

Required permissions: - ReadCall

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getCallWithHttpInfo(
  String type,
  String id, {
  String? connectionId,
  int? membersLimit,
  bool? ring,
  bool? notify,
  bool? video,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/video/call/{type}/{id}'
      .replaceAll('{type}', type)
      .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (connectionId != null) {
    queryParams.addAll(_queryParams('', 'connection_id', connectionId));
  }
  if (membersLimit != null) {
    queryParams.addAll(_queryParams('', 'members_limit', membersLimit));
  }
  if (ring != null) {
    queryParams.addAll(_queryParams('', 'ring', ring));
  }
  if (notify != null) {
    queryParams.addAll(_queryParams('', 'notify', notify));
  }
  if (video != null) {
    queryParams.addAll(_queryParams('', 'video', video));
  }

  const contentTypes = <String>[];

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