示例#1
0
 public async Task DeleteAllUserNotifications(DeleteAllUserNotificationsInput input)
 {
     await _userNotificationManager.DeleteAllUserNotificationsAsync(
         AbpSession.ToUserIdentifier(),
         input.State,
         input.StartDate,
         input.EndDate);
 }
示例#2
0
 /// <summary>
 /// Deletes all notifications of a user.
 /// </summary>
 /// <param name="userNotificationManager">User notificaiton manager</param>
 /// <param name="userId">The user id.</param>
 public static void DeleteAllUserNotificationsAsync(this IUserNotificationManager userNotificationManager, long userId)
 {
     AsyncHelper.RunSync(() => userNotificationManager.DeleteAllUserNotificationsAsync(userId));
 }
 /// <summary>
 /// Deletes all notifications of a user.
 /// </summary>
 /// <param name="userNotificationManager">User notificaiton manager</param>
 /// <param name="user">The user id.</param>
 public static void DeleteAllUserNotifications(this IUserNotificationManager userNotificationManager, UserIdentifier user)
 {
     AsyncHelper.RunSync(() => userNotificationManager.DeleteAllUserNotificationsAsync(user));
 }
示例#4
0
 public async Task DeleteAllAsync(UserNotificationState?state = null, DateTime?startDate = null, DateTime?endDate = null)
 {
     await _userNotificationManager.DeleteAllUserNotificationsAsync(CurrentUser.Id.Value, state, startDate, endDate);
 }