getCommentsWithHttpInfo method
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,
);
}