rejectCallWithHttpInfo method

Future<Response> rejectCallWithHttpInfo(
  1. String type,
  2. String id,
  3. RejectCallRequest rejectCallRequest
)

Reject Call

Sends events: - call.rejected Required permissions: - JoinCall

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rejectCallWithHttpInfo(
  String type,
  String id,
  RejectCallRequest rejectCallRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/video/call/{type}/{id}/reject'
      .replaceAll('{type}', type)
      .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = rejectCallRequest;

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

  const contentTypes = <String>['application/json'];

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