getCommentsPublicWithHttpInfo method

Future<Response> getCommentsPublicWithHttpInfo(
  1. String tenantId,
  2. String urlId, {
  3. int? page,
  4. SortDirections? direction,
  5. String? sso,
  6. int? skip,
  7. int? skipChildren,
  8. int? limit,
  9. int? limitChildren,
  10. bool? countChildren,
  11. String? fetchPageForCommentId,
  12. bool? includeConfig,
  13. bool? countAll,
  14. bool? includei10n,
  15. String? locale,
  16. String? modules,
  17. bool? isCrawler,
  18. bool? includeNotificationCount,
  19. bool? asTree,
  20. int? maxTreeDepth,
  21. bool? useFullTranslationIds,
  22. String? parentId,
  23. String? searchText,
  24. List<String>? hashTags,
  25. String? userId,
  26. String? customConfigStr,
  27. String? afterCommentId,
  28. String? beforeCommentId,
})

req tenantId urlId

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getCommentsPublicWithHttpInfo(String tenantId, String urlId, { int? page, SortDirections? direction, String? sso, int? skip, int? skipChildren, int? limit, int? limitChildren, bool? countChildren, String? fetchPageForCommentId, bool? includeConfig, bool? countAll, bool? includei10n, String? locale, String? modules, bool? isCrawler, bool? includeNotificationCount, bool? asTree, int? maxTreeDepth, bool? useFullTranslationIds, String? parentId, String? searchText, List<String>? hashTags, String? userId, String? customConfigStr, String? afterCommentId, String? beforeCommentId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/comments/{tenantId}'
    .replaceAll('{tenantId}', tenantId);

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'urlId', urlId));
  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }
  if (direction != null) {
    queryParams.addAll(_queryParams('', 'direction', direction));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }
  if (skip != null) {
    queryParams.addAll(_queryParams('', 'skip', skip));
  }
  if (skipChildren != null) {
    queryParams.addAll(_queryParams('', 'skipChildren', skipChildren));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (limitChildren != null) {
    queryParams.addAll(_queryParams('', 'limitChildren', limitChildren));
  }
  if (countChildren != null) {
    queryParams.addAll(_queryParams('', 'countChildren', countChildren));
  }
  if (fetchPageForCommentId != null) {
    queryParams.addAll(_queryParams('', 'fetchPageForCommentId', fetchPageForCommentId));
  }
  if (includeConfig != null) {
    queryParams.addAll(_queryParams('', 'includeConfig', includeConfig));
  }
  if (countAll != null) {
    queryParams.addAll(_queryParams('', 'countAll', countAll));
  }
  if (includei10n != null) {
    queryParams.addAll(_queryParams('', 'includei10n', includei10n));
  }
  if (locale != null) {
    queryParams.addAll(_queryParams('', 'locale', locale));
  }
  if (modules != null) {
    queryParams.addAll(_queryParams('', 'modules', modules));
  }
  if (isCrawler != null) {
    queryParams.addAll(_queryParams('', 'isCrawler', isCrawler));
  }
  if (includeNotificationCount != null) {
    queryParams.addAll(_queryParams('', 'includeNotificationCount', includeNotificationCount));
  }
  if (asTree != null) {
    queryParams.addAll(_queryParams('', 'asTree', asTree));
  }
  if (maxTreeDepth != null) {
    queryParams.addAll(_queryParams('', 'maxTreeDepth', maxTreeDepth));
  }
  if (useFullTranslationIds != null) {
    queryParams.addAll(_queryParams('', 'useFullTranslationIds', useFullTranslationIds));
  }
  if (parentId != null) {
    queryParams.addAll(_queryParams('', 'parentId', parentId));
  }
  if (searchText != null) {
    queryParams.addAll(_queryParams('', 'searchText', searchText));
  }
  if (hashTags != null) {
    queryParams.addAll(_queryParams('multi', 'hashTags', hashTags));
  }
  if (userId != null) {
    queryParams.addAll(_queryParams('', 'userId', userId));
  }
  if (customConfigStr != null) {
    queryParams.addAll(_queryParams('', 'customConfigStr', customConfigStr));
  }
  if (afterCommentId != null) {
    queryParams.addAll(_queryParams('', 'afterCommentId', afterCommentId));
  }
  if (beforeCommentId != null) {
    queryParams.addAll(_queryParams('', 'beforeCommentId', beforeCommentId));
  }

  const contentTypes = <String>[];


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