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;
6
8{
13 {
18 : base()
19 {
20 }
21
26 : base()
27 {
28 this.Category = e.JID + "|||";
29 this.BareJid = e.JID;
30 this.RemoteJid = e.RemoteJID;
31 this.Key = e.Key;
32 this.ProvisioningService = e.From;
33 this.Received = DateTime.UtcNow;
34 this.Type = NotificationEventType.Things;
35 }
36
40 public string? RemoteJid { get; set; }
41
45 public string? Key { get; set; }
46
50 public string? ProvisioningService { get; set; }
51
55 public override bool DeleteWhenOpened => false;
56
61 public override Task<Geometry> GetCategoryIcon()
62 {
63 return Task.FromResult(Geometries.ThingPath);
64 }
65 }
66}
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:617
string From
From where the message was received.
string RemoteJID
JID of device requesting presence subscription of the device.
NotificationEventType
Button on which event is to be displayed.