37 this.LegalId = e.LegalId;
49 public string?
Role {
get;
set; }
54 public override async Task
Open()
57 ViewContractNavigationArgs Args =
new(
Contract,
false);
68 StringBuilder Result =
new();
76 if (this.identity is
null)
81 Result.Append(
ServiceRef.
Localizer[nameof(AppResources.UserSignedAs), FriendlyName, this.Role ??
string.Empty]);
86 return Result.ToString();
102 if (this.identity is
null && !
string.IsNullOrEmpty(this.
IdentityXml))
104 XmlDocument Doc =
new()
106 PreserveWhitespace =
true
113 return this.identity;
118 this.identity = value;
121 this.IdentityXml =
null;
124 StringBuilder Xml =
new();
125 value.
Serialize(Xml,
true,
true,
true,
true,
true,
true,
true);
126 this.IdentityXml = Xml.ToString();
136 if (this.identity is
null && !
string.IsNullOrEmpty(this.
LegalId))
145 new KeyValuePair<string, object?>(
"ContractId", this.
ContractId),
146 new KeyValuePair<string, object?>(
"LegalId", this.
LegalId),
147 new KeyValuePair<string, object?>(
"Role", this.
Role),
154 if (Identity?.Attachments is not
null)
XMPP Protocol Properties.
const string Jid
Jabber ID
A set of never changing property constants and helpful values.
Abstract base class of Contract notification events.
string? ContractId
Contract ID.
async Task< Contract?> GetContract()
Gets a parsed contract.
Notification event for when a contract has been signed.
LegalIdentity? Identity
Gets a parsed identity.
override async Task Open()
Opens the event.
string? IdentityXml
XML of identity.
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? LegalId
Legal ID signing the contract.
ContractSignedNotificationEvent(Contract Contract, ContractSignedEventArgs e)
Notification event for when a contract has been signed.
ContractSignedNotificationEvent()
Notification event for when a contract has been signed.
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
static IXmppService XmppService
The XMPP service for XMPP communication.
The data model for a contract.
static async Task< string?> GetCategory(Contract Contract)
Gets the category of a contract
A page that displays a specific 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.
Task GoToAsync(string Route, BackMethod BackMethod=BackMethod.Inherited, string? UniqueId=null)
Navigates the AppShell to the specified route, with page arguments to match.
BackMethod
Navigation Back Method