NotificationService Class

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

Service layer for Notification objects.

public static class NotificationService
Inheritance:
System.Object → NotificationService

Methods

Get(Int32, Boolean) Gets an Notification object.
GetBadge(Int32, Boolean, Boolean) Gets the number to display on the badge for the specified user.
GetBadges(Int32) Get the badge values for conversations and notifications.
GetUnread(Nullable, NotificationQuery) Gets the unread notifications for a user. The notifications are sorted with the most recent notification first.
Insert(Notification) Inserts a notification.
ReadAll(Int32, Nullable) Sets the read status to true for all the users notifications. Optionally the id of the last viewed notification could be passed in, so that not viewed notifications are not marked as read.
Search(NotificationQuery) Search notifications with the specified search criteria.
Update(Notification, Boolean) Updates the specified Notification.