getComments method

Future<APIGetCommentsResponse?> getComments(
  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,
})

Parameters:

Implementation

Future<APIGetCommentsResponse?> getComments(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 {
  final response = await getCommentsWithHttpInfo(tenantId,  page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction, fromDate: fromDate, toDate: toDate, );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIGetCommentsResponse',) as APIGetCommentsResponse;

  }
  return null;
}