3using Microsoft.Maui.Controls.Shapes;
34 this.Identity = e.RequestorIdentity;
35 this.Category = e.RequestorIdentity.Id;
36 this.RequestorFullJid = e.RequestorFullJid;
37 this.SignatoryIdentityId = e.SignatoryIdentityId;
38 this.PetitionId = e.PetitionId;
39 this.Purpose = e.Purpose;
40 this.ContentToSign = e.ContentToSign;
42 this.Received = DateTime.UtcNow;
52 this.Identity = e.RequestorIdentity;
53 this.Category = e.RequestorIdentity.Id;
54 this.RequestorFullJid = e.RequestorFullJid;
55 this.SignatoryIdentityId = e.RequestedIdentityId;
56 this.PetitionId = e.PetitionId;
57 this.Purpose = e.Purpose;
58 this.ContentToSign =
null;
60 this.Received = DateTime.UtcNow;
70 this.Identity = e.RequestedIdentity;
71 this.Category = e.RequestedIdentity.Id;
73 this.PetitionId = e.PetitionId;
74 this.ContentToSign = e.Signature;
75 this.Received = DateTime.UtcNow;
85 this.Identity = e.RequestedIdentity;
86 this.Category = e.RequestedIdentity.Id;
87 this.PetitionId = e.PetitionId;
129 if (this.identity is
null && !
string.IsNullOrEmpty(this.
IdentityXml))
131 XmlDocument Doc =
new()
133 PreserveWhitespace =
true
140 return this.identity;
145 this.identity = value;
148 this.IdentityXml =
null;
151 StringBuilder Xml =
new();
152 value.
Serialize(Xml,
true,
true,
true,
true,
true,
true,
true);
153 this.IdentityXml = Xml.ToString();
172 if (this.identity is
null)
173 return Task.FromResult(
string.Empty);
183 if (this.identity?.Attachments is not
null)
Abstract base class of Identity notification events.
LegalIdentity? Identity
Gets a parsed identity.
string? IdentityXml
XML of identity.
IdentityNotificationEvent(LegalIdentityPetitionResponseEventArgs e)
Abstract base class of Identity notification events.
IdentityNotificationEvent(SignaturePetitionEventArgs e)
Abstract base class of Identity notification events.
override async Task Prepare()
Performs perparatory tasks, that will simplify opening the notification.
byte?[] ContentToSign
Content to sign.
IdentityNotificationEvent()
Abstract base class of Identity notification events.
override Task< string > GetDescription()
Gets a descriptive text for the category of event.
string? RequestorFullJid
Full JID of requestor.
string? PetitionId
Petition ID
string? SignatoryIdentityId
Legal identity of petitioned signatory.
override Task< Geometry > GetCategoryIcon()
Gets an icon for the category of event.
IdentityNotificationEvent(LegalIdentityPetitionEventArgs e)
Abstract base class of Identity notification events.
IdentityNotificationEvent(SignaturePetitionResponseEventArgs e)
Abstract base class of Identity notification events.
Base class that references services in the app.
static ILogService LogService
Log service.
Static class containing SVG Paths for symbols used in the app.
static readonly Geometry PersonPath
Person button glyph
Contains a reference to an attachment assigned to a legal object.
void Serialize(StringBuilder Xml, bool IncludeNamespace, bool IncludeIdAttribute, bool IncludeClientSignature, bool IncludeAttachments, bool IncludeStatus, bool IncludeServerSignature, bool IncludeAttachmentReferences)
Serializes the identity to XML
static LegalIdentity Parse(XmlElement Xml)
Parses an identity from its XML representation
Attachment[] Attachments
Attachments assigned to the legal identity.
abstract class NotificationEvent()
Abstract base class of notification events.
NotificationEventType
Button on which event is to be displayed.