35 this.Identity = e.RequestorIdentity;
36 this.RequestorFullJid = e.RequestorFullJid;
37 this.PetitionId = e.PetitionId;
38 this.Purpose = e.Purpose;
69 if (this.identity is
null && !
string.IsNullOrEmpty(this.
IdentityXml))
71 XmlDocument Doc =
new()
73 PreserveWhitespace =
true
85 this.identity = value;
88 this.IdentityXml =
null;
91 StringBuilder Xml =
new();
92 value.
Serialize(Xml,
true,
true,
true,
true,
true,
true,
true);
93 this.IdentityXml = Xml.ToString();
101 public override async Task
Open()
105 if (Contract is not
null)
118 StringBuilder Result =
new();
130 return Result.ToString();
140 if (Identity?.Attachments is not
null)
Abstract base class of Contract notification events.
async Task< Contract?> GetContract()
Gets a parsed contract.
Notification event for contract petitions.
override async Task Prepare()
Performs perparatory tasks, that will simplify opening the notification.
override async Task< string > GetDescription()
Gets a descriptive text for the category of event.
string? PetitionId
Petition ID
string? Purpose
Purpose message, to be displayed to user.
override async Task Open()
Opens the event.
ContractPetitionNotificationEvent(Contract Contract, ContractPetitionEventArgs e)
Notification event for contract petitions.
ContractPetitionNotificationEvent()
Notification event for contract petitions.
string? IdentityXml
XML of identity.
LegalIdentity? Identity
Gets a parsed identity.
string? RequestorFullJid
Full JID of requestor.
Base class that references services in the app.
static ILogService LogService
Log service.
static IUiService UiService
Service serializing and managing UI-related tasks.
static IStringLocalizer Localizer
Localization service
The data model for a contract.
static async Task< string?> GetCategory(Contract Contract)
Gets the category of a contract
Holds navigation parameters specific to views displaying a contract petition request.
A page to display when the user is asked to petition a contract.
Contains a reference to an attachment assigned to a legal object.
Contains the definition of a contract
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.