1using Microsoft.Maui.Controls.Shapes;
36 this.Received = DateTime.UtcNow;
49 this.Received = DateTime.UtcNow;
65 this.Received = DateTime.UtcNow;
81 this.Received = DateTime.UtcNow;
102 if (this.contract is
null && !
string.IsNullOrEmpty(this.
ContractXml))
104 XmlDocument Doc =
new()
106 PreserveWhitespace =
true
115 return this.contract;
127 this.ContractXml =
null;
130 StringBuilder Xml =
new();
132 this.ContractXml = Xml.ToString();
152 if (Contract is
null)
153 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
Event arguments for smart contract petitions
string RequestedContractId
Requested contract ID
Event arguments for smart contract petition responses
Contract RequestedContract
Requested contract, if accepted, null if rejected.
Event arguments for smart contract proposals
string ContractId
ID of proposed contract.
Event arguments for events referencing a contract.
string ContractId
ID of contract being signed.
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.