Spaces:
Sleeping
Sleeping
File size: 693 Bytes
4433399 ccc2569 313d29f ccc2569 4433399 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using LibraryManagement.Shared.Models;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace Backend.Features.Notification;
public interface INotificationService
{
Task<bool> SendNotificationAsync(string token, string title, string body, Dictionary<string, string>? data = null);
Task<bool> SendAndSaveNotificationAsync(Guid userId, string? token, string title, string body, string type = "Info", string? actionLink = null, string? actionText = null);
Task<List<NotificationDto>> GetUserNotificationsAsync(Guid userId);
Task<bool> MarkAllAsReadAsync(Guid userId);
Task<bool> MarkAsReadAsync(int id);
Task<int> GetUnreadCountAsync(Guid userId);
}
|