NotificationsController Class

Namespace:
Weavy.Web.Api.Controllers
Assembly:
Weavy.Web.dll

The Notifications API allow users to manage their notifications.

public class NotificationsController : WeavyApiController
Inheritance:
System.Object → WeavyApiControllerNotificationsController

Constructors

NotificationsController()

Methods

Get(int) Get the notification with the specified id.
GetNotificationBadge() Get the badges for the current user.
GetNotifications(NotificationQuery) Get the nofications for the current user.
GetUnread(NotificationQuery) Get the unread nofications for the current user.
PostRead(int) Mark the notification with the specified id as read.
PostReadAll(int?) Mark all unread notifications for the current user as read. Optionally pass in the id if the last viewed notification.
PostUnRead(int) Marks the notification with the specified id as unread.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.