Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ProvisioningNotificationEvent.cs
1using Microsoft.Maui.Controls.Shapes;
5
7{
12 {
17 : base()
18 {
19 }
20
24 public ProvisioningNotificationEvent(QuestionEventArgs e)
25 : base()
26 {
27 this.Category = e.JID + "|||";
28 this.BareJid = e.JID;
29 this.RemoteJid = e.RemoteJID;
30 this.Key = e.Key;
31 this.ProvisioningService = e.From;
32 this.Received = DateTime.UtcNow;
33 this.Type = NotificationEventType.Things;
34 }
35
39 public string? RemoteJid { get; set; }
40
44 public string? Key { get; set; }
45
49 public string? ProvisioningService { get; set; }
50
54 public override bool DeleteWhenOpened => false;
55
60 public override Task<Geometry> GetCategoryIcon()
61 {
62 return Task.FromResult(Geometries.ThingPath);
63 }
64 }
65}
override bool DeleteWhenOpened
If notification event should be deleted when openedd.
ProvisioningNotificationEvent(QuestionEventArgs e)
Abstract base class of provisioning notification events.
ProvisioningNotificationEvent()
Abstract base class of provisioning notification events.
override Task< Geometry > GetCategoryIcon()
Gets an icon for the category of event.
Abstract base class of XMPP notification events.
Static class containing SVG Paths for symbols used in the app.
Definition: Geometries.cs:11
static readonly Geometry ThingPath
Thing button glyph
Definition: Geometries.cs:518
NotificationEventType
Button on which event is to be displayed.