Interface INotificationService
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
DeleteNotificationAsync(int)
Deletes a notification
Task DeleteNotificationAsync(int notificationId)
Parameters
notificationId
int
Returns
GetNotificationAsync(int)
Returns a specific notifications
Task<Notification> GetNotificationAsync(int notificationId)
Parameters
notificationId
int
Returns
GetNotificationCountAsync(int, string, int, bool)
Task<int> GetNotificationCountAsync(int siteId, string direction, int userId, bool isRead)
Parameters
Returns
GetNotificationsAsync(int, string, int)
Return a list of notifications
Task<List<Notification>> GetNotificationsAsync(int siteId, string direction, int userId)
Parameters
Returns
GetNotificationsAsync(int, string, int, int, bool)
Task<List<Notification>> GetNotificationsAsync(int siteId, string direction, int userId, int count, bool isRead)
Parameters
Returns
UpdateNotificationAsync(Notification)
Updates a existing notification
Task<Notification> UpdateNotificationAsync(Notification notification)
Parameters
notification
Notification