Spaces:
Sleeping
Sleeping
Download Backend/Features/Notification/INotificationService.cs from Yuruyuruu/LibraryManagement: direct link, hf CLI and curl.
- Browser
- Download file 693 Bytes
-
https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/main/Backend/Features/Notification/INotificationService.cs
- Command line
-
hf download hf://spaces/Yuruyuruu/LibraryManagement/Backend/Features/Notification/INotificationService.cs
-
curl -L -o INotificationService.cs https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/main/Backend/Features/Notification/INotificationService.cs
693 Bytes
| 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); | |
| } | |