Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NotificationEvent.cs
1using Microsoft.Maui.Controls.Shapes;
4
6{
10 [CollectionName("Notifications")]
11 [TypeName(TypeNameSerialization.FullName)]
12 [Index("Type", "Category")]
13 public abstract class NotificationEvent()
14 {
18 [ObjectId]
19 public string? ObjectId { get; set; }
20
24 public DateTime Received { get; set; }
25
29 public CaseInsensitiveString? Category { get; set; }
30
34 public NotificationEventType? Type { get; set; }
35
39 public virtual bool DeleteWhenOpened => true;
40
45 public abstract Task<Geometry> GetCategoryIcon();
46
50 public abstract Task<string> GetDescription();
51
55 public abstract Task Open();
56
60 public virtual Task Prepare()
61 {
62 return Task.CompletedTask;
63 }
64 }
65}
Represents a case-insensitive string.
abstract class NotificationEvent()
Abstract base class of notification events.
NotificationEventType
Button on which event is to be displayed.
TypeNameSerialization
How the type name should be serialized.