getAllRaidsRaidsGetWithHttpInfo method

Future<Response> getAllRaidsRaidsGetWithHttpInfo({
  1. String? name,
  2. bool? active,
  3. int? page,
  4. int? size,
  5. Future<void>? abortTrigger,
})

Get All Raids

Fetch the list of all raids.

Note: This method returns the HTTP Response.

Parameters:

  • String name: Name of the raid.

  • bool active: Filter raids by active status.

  • int page: Page number

  • int size: Page size

Implementation

Future<Response> getAllRaidsRaidsGetWithHttpInfo({
  String? name,
  bool? active,
  int? page,
  int? size,
  Future<void>? abortTrigger,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/raids';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (name != null) {
    queryParams.addAll(_queryParams('', 'name', name));
  }
  if (active != null) {
    queryParams.addAll(_queryParams('', 'active', active));
  }
  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }
  if (size != null) {
    queryParams.addAll(_queryParams('', 'size', size));
  }

  const contentTypes = <String>[];

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