resetUserNotificationsWithHttpInfo method
Future<Response>
resetUserNotificationsWithHttpInfo(
- String tenantId, [
- ResetUserNotificationsOptions? options
Performs an HTTP 'POST /user-notifications/reset' operation and returns the Response.
Parameters:
Implementation
Future<Response> resetUserNotificationsWithHttpInfo(String tenantId, [ ResetUserNotificationsOptions? options ]) async {
final afterId = options?.afterId;
final afterCreatedAt = options?.afterCreatedAt;
final unreadOnly = options?.unreadOnly;
final dmOnly = options?.dmOnly;
final noDm = options?.noDm;
final sso = options?.sso;
// ignore: prefer_const_declarations
final path = r'/user-notifications/reset';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'tenantId', tenantId));
if (afterId != null) {
queryParams.addAll(_queryParams('', 'afterId', afterId));
}
if (afterCreatedAt != null) {
queryParams.addAll(_queryParams('', 'afterCreatedAt', afterCreatedAt));
}
if (unreadOnly != null) {
queryParams.addAll(_queryParams('', 'unreadOnly', unreadOnly));
}
if (dmOnly != null) {
queryParams.addAll(_queryParams('', 'dmOnly', dmOnly));
}
if (noDm != null) {
queryParams.addAll(_queryParams('', 'noDm', noDm));
}
if (sso != null) {
queryParams.addAll(_queryParams('', 'sso', sso));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}