Creata card notifiche
This commit is contained in:
@@ -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); });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user