Gestita pagina notifiche

This commit is contained in:
2025-09-11 16:06:19 +02:00
parent 7319378e75
commit 7bfe67a97c
30 changed files with 611 additions and 105 deletions

View File

@@ -1,8 +1,12 @@
using salesbook.Shared.Core.Dto.Notification;
using salesbook.Shared.Core.Entity;
namespace salesbook.Shared.Core.Dto.PageState;
public class NotificationState
{
public List<PushNotificationDTO> UnreadNotifications { get; set; } = [];
public List<WtbNotification> ReceivedNotifications { get; set; } = [];
public List<WtbNotification> UnreadNotifications { get; set; } = [];
public List<WtbNotification> NotificationsRead { get; set; } = [];
public int Count => ReceivedNotifications.Count() + UnreadNotifications.Count();
}