1using CommunityToolkit.Mvvm.ComponentModel;
2using CommunityToolkit.Mvvm.Input;
3using Microsoft.Maui.Controls.Shapes;
16 public partial class EventModel(DateTime Received, Geometry Icon, string Description,
NotificationEvent Event) : ObservableObject, IUniqueItem
21 public DateTime Received {
get; } = Received;
26 public Geometry Icon {
get; } = Icon;
31 public string Description {
get; } = Description;
39 public string UniqueName => this.Event.ObjectId ??
string.Empty;
47 MainThread.BeginInvokeOnMainThread(async () =>
51 await this.Event.Open();
53 if (this.Event.DeleteWhenOpened)
Base class that references services in the app.
static ILogService LogService
Log service.
static INotificationService NotificationService
Service for managing notifications for the user.
Task DeleteEvents(NotificationEventType Type, CaseInsensitiveString Category)
Deletes events for a given button and category.
abstract class NotificationEvent()
Abstract base class of notification events.