getNotificationCountWithHttpInfo method
Performs an HTTP 'GET /api/v1/notifications/count' operation and returns the Response.
Parameters:
Implementation
Future<Response> getNotificationCountWithHttpInfo(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/notifications/count';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'tenantId', tenantId));
if (userId != null) {
queryParams.addAll(_queryParams('', 'userId', userId));
}
if (urlId != null) {
queryParams.addAll(_queryParams('', 'urlId', urlId));
}
if (fromCommentId != null) {
queryParams.addAll(_queryParams('', 'fromCommentId', fromCommentId));
}
if (viewed != null) {
queryParams.addAll(_queryParams('', 'viewed', viewed));
}
if (type != null) {
queryParams.addAll(_queryParams('', 'type', type));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}