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
- 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
intdirection
stringuserId
intisRead
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
intdirection
stringuserId
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
intdirection
stringuserId
intcount
intisRead
bool
Returns
- Task<List<Notification>>
UpdateNotificationAsync(Notification)
Updates a existing notification
Task<Notification> UpdateNotificationAsync(Notification notification)
Parameters
notification
Notification
Returns
- Task<Notification>