WIP: Item counts
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
using Toolkit.Foundation;
|
||||
|
||||
namespace Wallet;
|
||||
|
||||
public class UnfavouriteItemHandler(IDecoratorService<Item<(Guid, string)>> decoratorService,
|
||||
IMediator mediator) :
|
||||
IMediator mediator,
|
||||
IPublisher publisher) :
|
||||
INotificationHandler<UnfavouriteEventArgs<Item>>
|
||||
{
|
||||
public async Task Handle(UnfavouriteEventArgs<Item> args)
|
||||
@@ -13,6 +15,8 @@ public class UnfavouriteItemHandler(IDecoratorService<Item<(Guid, string)>> deco
|
||||
{
|
||||
(Guid id, string name) = item.Value;
|
||||
await mediator.Handle<UpdateEventArgs<(Guid, int)>, bool>(new UpdateEventArgs<(Guid, int)>((id, 0)));
|
||||
|
||||
publisher.Publish(Changed.As(item));
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user