getPreBanSummaryWithHttpInfo method

Future<Response> getPreBanSummaryWithHttpInfo(
  1. String commentId, {
  2. bool? includeByUserIdAndEmail,
  3. bool? includeByIP,
  4. bool? includeByEmailDomain,
  5. String? sso,
})

Performs an HTTP 'GET /auth/my-account/moderate-comments/pre-ban-summary/{commentId}' operation and returns the Response. Parameters:

Implementation

Future<Response> getPreBanSummaryWithHttpInfo(String commentId, { bool? includeByUserIdAndEmail, bool? includeByIP, bool? includeByEmailDomain, String? sso, }) async {
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/pre-ban-summary/{commentId}'
    .replaceAll('{commentId}', commentId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (includeByUserIdAndEmail != null) {
    queryParams.addAll(_queryParams('', 'includeByUserIdAndEmail', includeByUserIdAndEmail));
  }
  if (includeByIP != null) {
    queryParams.addAll(_queryParams('', 'includeByIP', includeByIP));
  }
  if (includeByEmailDomain != null) {
    queryParams.addAll(_queryParams('', 'includeByEmailDomain', includeByEmailDomain));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }

  const contentTypes = <String>[];


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