70 if (this.identity is
null && !
string.IsNullOrEmpty(this.
IdentityXml))
72 XmlDocument Doc =
new()
74 PreserveWhitespace =
true
86 this.identity = value;
89 this.IdentityXml =
null;
92 StringBuilder Xml =
new();
93 value.
Serialize(Xml,
true,
true,
true,
true,
true,
true,
true);
94 this.IdentityXml = Xml.ToString();
102 public override async Task
Open()
106 if (Contract is not
null)
119 StringBuilder Result =
new();
131 return Result.ToString();
141 if (Identity?.Attachments is not
null)
A strongly-typed resource class, for looking up localized strings, etc.
static string RequestToAccessContract
Looks up a localized string similar to Request to access contract.
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 INavigationService NavigationService
The navigation service for navigating between pages.
static IReportingStringLocalizer 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
Event arguments for smart contract petitions
LegalIdentity RequestorIdentity
Legal Identity of requesting entity.
string RequestorFullJid
Full JID of requestor.
string PetitionId
Petition ID
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.