getApiCommentsWithHttpInfo method

Future<Response> getApiCommentsWithHttpInfo(
  1. String tenantId, [
  2. GetApiCommentsOptions? options
])

Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/api/comments' operation and returns the Response. Parameters:

Implementation

Future<Response> getApiCommentsWithHttpInfo(String tenantId, [ GetApiCommentsOptions? options ]) async {
  final page = options?.page;
  final count = options?.count;
  final textSearch = options?.textSearch;
  final byIPFromComment = options?.byIPFromComment;
  final filters = options?.filters;
  final searchFilters = options?.searchFilters;
  final sorts = options?.sorts;
  final demo = options?.demo;
  final sso = options?.sso;
  // ignore: prefer_const_declarations
  final path = r'/auth/my-account/moderate-comments/mod_api/api/comments';

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }
  if (count != null) {
    queryParams.addAll(_queryParams('', 'count', count));
  }
  if (textSearch != null) {
    queryParams.addAll(_queryParams('', 'text-search', textSearch));
  }
  if (byIPFromComment != null) {
    queryParams.addAll(_queryParams('', 'byIPFromComment', byIPFromComment));
  }
  if (filters != null) {
    queryParams.addAll(_queryParams('', 'filters', filters));
  }
  if (searchFilters != null) {
    queryParams.addAll(_queryParams('', 'searchFilters', searchFilters));
  }
  if (sorts != null) {
    queryParams.addAll(_queryParams('', 'sorts', sorts));
  }
  if (demo != null) {
    queryParams.addAll(_queryParams('', 'demo', demo));
  }
  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,
  );
}