NotificationService.ReadAll Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Overloads
Read |
Marks all notifications for current user that relates to the specifed parent entity as read. |
Read |
Mark all notifications for the specified user as read. |
ReadAll(IEntity)
Marks all notifications for current user that relates to the specifed parent entity as read.
public static void ReadAll(IEntity parent)
Parameters
- parent
- IEntity
The parent entity for the notification.
ReadAll(int?, int?)
Mark all notifications for the specified user as read.
public static void ReadAll(int? userId = default(int? ), int? lastSeenId = default(int? ))
Parameters
- user
Id - int?
Id of user, or null
for current user.
- last
Seen Id - int?
Id of the last seen notification. When specified, newer notifications than this are not marked as read.