Table of Contents

Interface INotificationService

Namespace
Oqtane.Services
Assembly
Oqtane.Client.dll

Service to store and retrieve notifications (Notification)

public interface INotificationService

Methods

AddNotificationAsync(Notification)

Creates a new notification

Task<Notification> AddNotificationAsync(Notification notification)

Parameters

notification Notification

Returns

Task<Notification>

DeleteNotificationAsync(int)

Deletes a notification

Task DeleteNotificationAsync(int notificationId)

Parameters

notificationId int

Returns

Task

GetNotificationAsync(int)

Returns a specific notifications

Task<Notification> GetNotificationAsync(int notificationId)

Parameters

notificationId int

Returns

Task<Notification>

GetNotificationCountAsync(int, string, int, bool)

Task<int> GetNotificationCountAsync(int siteId, string direction, int userId, bool isRead)

Parameters

siteId int
direction string
userId int
isRead bool

Returns

Task<int>

GetNotificationsAsync(int, string, int)

Return a list of notifications

Task<List<Notification>> GetNotificationsAsync(int siteId, string direction, int userId)

Parameters

siteId int
direction string
userId int

Returns

Task<List<Notification>>

GetNotificationsAsync(int, string, int, int, bool)

Task<List<Notification>> GetNotificationsAsync(int siteId, string direction, int userId, int count, bool isRead)

Parameters

siteId int
direction string
userId int
count int
isRead bool

Returns

Task<List<Notification>>

UpdateNotificationAsync(Notification)

Updates a existing notification

Task<Notification> UpdateNotificationAsync(Notification notification)

Parameters

notification Notification

Returns

Task<Notification>