using Oqtane.Models; using System.Collections.Generic; using System.Threading.Tasks; namespace Oqtane.Services { /// /// Service to store and retrieve notifications () /// public interface INotificationService { /// /// Return a list of notifications /// /// /// /// /// Task> GetNotificationsAsync(int siteId, string direction, int userId); /// /// /// /// /// /// /// /// /// Task> GetNotificationsAsync(int siteId, string direction, int userId, int count, bool isRead); /// /// /// /// /// /// /// /// Task GetNotificationCountAsync(int siteId, string direction, int userId, bool isRead); /// /// Returns a specific notifications /// /// /// Task GetNotificationAsync(int notificationId); /// /// Creates a new notification /// /// /// Task AddNotificationAsync(Notification notification); /// /// Updates a existing notification /// /// /// Task UpdateNotificationAsync(Notification notification); /// /// Deletes a notification /// /// /// Task DeleteNotificationAsync(int notificationId); } }