getCommentsPublicWithHttpInfo method
Future<Response>
getCommentsPublicWithHttpInfo(
- String tenantId,
- String urlId, [
- GetCommentsPublicOptions? options
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, [ GetCommentsPublicOptions? options ]) async {
final page = options?.page;
final direction = options?.direction;
final sso = options?.sso;
final skip = options?.skip;
final skipChildren = options?.skipChildren;
final limit = options?.limit;
final limitChildren = options?.limitChildren;
final countChildren = options?.countChildren;
final fetchPageForCommentId = options?.fetchPageForCommentId;
final includeConfig = options?.includeConfig;
final countAll = options?.countAll;
final includei10n = options?.includei10n;
final locale = options?.locale;
final modules = options?.modules;
final isCrawler = options?.isCrawler;
final includeNotificationCount = options?.includeNotificationCount;
final asTree = options?.asTree;
final maxTreeDepth = options?.maxTreeDepth;
final useFullTranslationIds = options?.useFullTranslationIds;
final parentId = options?.parentId;
final searchText = options?.searchText;
final hashTags = options?.hashTags;
final userId = options?.userId;
final customConfigStr = options?.customConfigStr;
final afterCommentId = options?.afterCommentId;
final beforeCommentId = options?.beforeCommentId;
// 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,
);
}