3using Microsoft.Maui.Controls.Shapes;
43 this.Received = DateTime.UtcNow;
59 this.ContentToSign =
null;
61 this.Received = DateTime.UtcNow;
76 this.Received = DateTime.UtcNow;
130 if (this.identity is
null && !
string.IsNullOrEmpty(this.
IdentityXml))
132 XmlDocument Doc =
new()
134 PreserveWhitespace =
true
141 return this.identity;
146 this.identity = value;
149 this.IdentityXml =
null;
152 StringBuilder Xml =
new();
153 value.
Serialize(Xml,
true,
true,
true,
true,
true,
true,
true);
154 this.IdentityXml = Xml.ToString();
173 if (this.identity is
null)
174 return Task.FromResult(
string.Empty);
184 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.
Event arguments for legal identity petitions
string RequestedIdentityId
Requested identity ID
Event arguments for legal identity petition responses
string PetitionId
Petition ID
LegalIdentity RequestedIdentity
Requested identity, if accepted, null if rejected.
LegalIdentity RequestorIdentity
Legal Identity of requesting entity.
string RequestorFullJid
Full JID of requestor.
string PetitionId
Petition ID
Event arguments for digital signature petitions
string SignatoryIdentityId
Legal identity of petitioned signatory.
byte[] ContentToSign
Content to sign.
Event arguments for signature petition responses
byte[] Signature
Digital Signature petitioned, if accepted by recipient.
string PetitionId
Petition ID
LegalIdentity RequestedIdentity
Requested identity, if accepted, null if rejected.
string Id
ID of the legal identity
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(string 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.