getCommentsForUserWithHttpInfo method
Performs an HTTP 'GET /comments-for-user' operation and returns the Response.
Parameters:
Implementation
Future<Response> getCommentsForUserWithHttpInfo({ String? userId, SortDirections? direction, String? repliesToUserId, double? page, bool? includei10n, String? locale, bool? isCrawler, }) async {
// ignore: prefer_const_declarations
final path = r'/comments-for-user';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (userId != null) {
queryParams.addAll(_queryParams('', 'userId', userId));
}
if (direction != null) {
queryParams.addAll(_queryParams('', 'direction', direction));
}
if (repliesToUserId != null) {
queryParams.addAll(_queryParams('', 'repliesToUserId', repliesToUserId));
}
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (includei10n != null) {
queryParams.addAll(_queryParams('', 'includei10n', includei10n));
}
if (locale != null) {
queryParams.addAll(_queryParams('', 'locale', locale));
}
if (isCrawler != null) {
queryParams.addAll(_queryParams('', 'isCrawler', isCrawler));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}