getCommentsForUserWithHttpInfo method
Performs an HTTP 'GET /comments-for-user' operation and returns the Response.
Parameters:
Implementation
Future<Response> getCommentsForUserWithHttpInfo([ GetCommentsForUserOptions? options ]) async {
final userId = options?.userId;
final direction = options?.direction;
final repliesToUserId = options?.repliesToUserId;
final page = options?.page;
final includei10n = options?.includei10n;
final locale = options?.locale;
final isCrawler = options?.isCrawler;
// 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,
);
}