Creata card notifiche

This commit is contained in:
2025-09-09 16:30:51 +02:00
parent dfb86e3cd7
commit 7319378e75
13 changed files with 289 additions and 18 deletions

View File

@@ -0,0 +1,14 @@
using CommunityToolkit.Mvvm.Messaging;
using salesbook.Shared.Core.Dto.Notification;
namespace salesbook.Shared.Core.Messages.Notification;
public class NewPushNotificationService
{
public event Action<PushNotificationDTO>? OnNotificationReceived;
public NewPushNotificationService(IMessenger messenger)
{
messenger.Register<NewPushNotificationMessage>(this, (_, o) => { OnNotificationReceived?.Invoke(o.Value); });
}
}