1using Microsoft.Maui.Controls.Shapes;
32 this.ContractId = e.ContractId;
33 this.Category = e.ContractId;
35 this.Received = DateTime.UtcNow;
45 this.ContractId = e.RequestedContract?.ContractId ??
string.Empty;
48 this.Received = DateTime.UtcNow;
62 this.Category = e.RequestedContractId;
64 this.Received = DateTime.UtcNow;
78 this.Category = e.ContractId;
80 this.Received = DateTime.UtcNow;
101 if (this.contract is
null && !
string.IsNullOrEmpty(this.
ContractXml))
103 XmlDocument Doc =
new()
105 PreserveWhitespace =
true
114 return this.contract;
126 this.ContractXml =
null;
129 StringBuilder Xml =
new();
131 this.ContractXml = Xml.ToString();
151 if (Contract is
null)
152 return this.ContractId ??
string.Empty;
Abstract base class of Contract notification events.
string? ContractId
Contract ID.
void SetContract(Contract? Contract)
Sets a parsed contract.
override Task< Geometry > GetCategoryIcon()
Gets an icon for the category of event.
ContractNotificationEvent(ContractPetitionResponseEventArgs e)
Abstract base class of Contract notification events.
override async Task< string > GetDescription()
Gets a descriptive text for the category of event.
string? ContractXml
XML of contract.
ContractNotificationEvent(Contract Contract, ContractPetitionEventArgs e)
Abstract base class of Contract notification events.
ContractNotificationEvent(Contract Contract, ContractReferenceEventArgs e)
Abstract base class of Contract notification events.
async Task< Contract?> GetContract()
Gets a parsed contract.
ContractNotificationEvent(ContractProposalEventArgs e)
Abstract base class of Contract notification events.
ContractNotificationEvent()
Abstract base class of Contract notification events.
Base class that references services in the app.
static IXmppService XmppService
The XMPP service for XMPP communication.
Static class containing SVG Paths for symbols used in the app.
static readonly Geometry ContractPath
Contract button glyph
The data model for a contract.
static async Task< string?> GetCategory(Contract Contract)
Gets the category of a contract
Contains the definition of a contract
static Task< ParsedContract > Parse(XmlDocument Xml)
Validates a contract XML Document, and returns the contract definition in it.
void Serialize(StringBuilder Xml, bool IncludeNamespace, bool IncludeIdAttribute, bool IncludeClientSignatures, bool IncludeAttachments, bool IncludeStatus, bool IncludeServerSignature, bool IncludeAttachmentReferences)
Serializes the Contract, in normalized form.
string ContractId
Contract identity
Contains information about a parsed contract.
Contract Contract
Contract object
abstract class NotificationEvent()
Abstract base class of notification events.
NotificationEventType
Button on which event is to be displayed.