getNotificationsWithHttpInfo method
Future<Response>
getNotificationsWithHttpInfo(
- String tenantId, [
- GetNotificationsOptions? options
Performs an HTTP 'GET /api/v1/notifications' operation and returns the Response.
Parameters:
Implementation
Future<Response> getNotificationsWithHttpInfo(String tenantId, [ GetNotificationsOptions? options ]) async {
final userId = options?.userId;
final urlId = options?.urlId;
final fromCommentId = options?.fromCommentId;
final viewed = options?.viewed;
final type = options?.type;
final skip = options?.skip;
// ignore: prefer_const_declarations
final path = r'/api/v1/notifications';
// 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));
}
if (skip != null) {
queryParams.addAll(_queryParams('', 'skip', skip));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}