2024-11-10 23:28:25 +01:00
|
|
|
|
using CommunityToolkit.Mvvm.Messaging;
|
2024-12-30 23:10:51 +01:00
|
|
|
|
using Wino.Core.Domain.Entities.Calendar;
|
2024-11-10 23:28:25 +01:00
|
|
|
|
using Wino.Messaging.Client.Calendar;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wino.Core.ViewModels
|
|
|
|
|
|
{
|
|
|
|
|
|
public class CalendarBaseViewModel : CoreBaseViewModel, IRecipient<CalendarEventAdded>
|
|
|
|
|
|
{
|
|
|
|
|
|
public void Receive(CalendarEventAdded message) => OnCalendarEventAdded(message.CalendarItem);
|
|
|
|
|
|
|
2024-12-30 23:10:51 +01:00
|
|
|
|
protected virtual void OnCalendarEventAdded(CalendarItem calendarItem) { }
|
2024-11-10 23:28:25 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|