getCommentsPublicWithHttpInfo method
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,
req tenantId urlId
Note: This method returns the HTTP Response.
Parameters:
-
String tenantId (required):
-
String urlId (required):
-
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:
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,
);
}