getCommentsWithHttpInfo method

Future<Response> getCommentsWithHttpInfo(
  1. String tenantId, {
  2. int? page,
  3. int? limit,
  4. int? skip,
  5. bool? asTree,
  6. int? skipChildren,
  7. int? limitChildren,
  8. int? maxTreeDepth,
  9. String? urlId,
  10. String? userId,
  11. String? anonUserId,
  12. String? contextUserId,
  13. String? hashTag,
  14. String? parentId,
  15. SortDirections? direction,
  16. int? fromDate,
  17. int? toDate,
})

Performs an HTTP 'GET /api/v1/comments' operation and returns the Response. Parameters:

Implementation

Future<Response> getCommentsWithHttpInfo(String tenantId, { int? page, int? limit, int? skip, bool? asTree, int? skipChildren, int? limitChildren, int? maxTreeDepth, String? urlId, String? userId, String? anonUserId, String? contextUserId, String? hashTag, String? parentId, SortDirections? direction, int? fromDate, int? toDate, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/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 (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (skip != null) {
    queryParams.addAll(_queryParams('', 'skip', skip));
  }
  if (asTree != null) {
    queryParams.addAll(_queryParams('', 'asTree', asTree));
  }
  if (skipChildren != null) {
    queryParams.addAll(_queryParams('', 'skipChildren', skipChildren));
  }
  if (limitChildren != null) {
    queryParams.addAll(_queryParams('', 'limitChildren', limitChildren));
  }
  if (maxTreeDepth != null) {
    queryParams.addAll(_queryParams('', 'maxTreeDepth', maxTreeDepth));
  }
  if (urlId != null) {
    queryParams.addAll(_queryParams('', 'urlId', urlId));
  }
  if (userId != null) {
    queryParams.addAll(_queryParams('', 'userId', userId));
  }
  if (anonUserId != null) {
    queryParams.addAll(_queryParams('', 'anonUserId', anonUserId));
  }
  if (contextUserId != null) {
    queryParams.addAll(_queryParams('', 'contextUserId', contextUserId));
  }
  if (hashTag != null) {
    queryParams.addAll(_queryParams('', 'hashTag', hashTag));
  }
  if (parentId != null) {
    queryParams.addAll(_queryParams('', 'parentId', parentId));
  }
  if (direction != null) {
    queryParams.addAll(_queryParams('', 'direction', direction));
  }
  if (fromDate != null) {
    queryParams.addAll(_queryParams('', 'fromDate', fromDate));
  }
  if (toDate != null) {
    queryParams.addAll(_queryParams('', 'toDate', toDate));
  }

  const contentTypes = <String>[];


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