NotificationService.ReadAll Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

ReadAll(IEntity) Marks all notifications for current user that relates to the specifed parent entity as read.
ReadAll(int?, int?) 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

userId
int?

Id of user, or null for current user.

lastSeenId
int?

Id of the last seen notification. When specified, newer notifications than this are not marked as read.