SCMS_API / SCMS.Domain /Features /Notifications /INotificationService.cs
P-Wint's picture
Sync from GitHub via hub-sync
6e1d809 verified
Raw
History Blame Contribute Delete
734 Bytes
using System.Threading.Tasks;
using SCMS.Shared;
using SCMS.Domain.Features.Notifications.Models;
namespace SCMS.Domain.Features.Notifications
{
public interface INotificationService
{
Task<PagedResult<GetNotificationsResponse>> GetNotificationsAsync(GetNotificationsRequest request, int? userId, bool isStaff = false);
Task<Result> MarkAsReadAsync(int notificationId, int userId);
Task<Result<CreateNotificationResponse>> CreateNotificationAsync(CreateNotificationRequest request);
Task<Result<NotificationResponse>> CreateNotificationAsync(int? userId, string title, string description, string? actionRoute);
Task<int> CleanupSoftDeletedNotificationsAsync(int daysOld = 30);
}
}