Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
RequestSignatureNotificationEvent.cs
1using System.Text;
7
9{
14 {
19 : base()
20 {
21 }
22
28 : base(e)
29 {
30 }
31
35 public override async Task Open()
36 {
37 if (this.Identity is not null &&
38 !string.IsNullOrEmpty(this.RequestorFullJid) &&
39 !string.IsNullOrEmpty(this.SignatoryIdentityId) &&
40 !string.IsNullOrEmpty(this.PetitionId) &&
41 !string.IsNullOrEmpty(this.Purpose) &&
42 this.ContentToSign is not null)
43 {
46 }
47 }
48
52 public override Task<string> GetDescription()
53 {
54 StringBuilder Result = new();
55
56 Result.Append(ServiceRef.Localizer[nameof(AppResources.RequestSignature)]);
57
58 if (this.Identity is not null)
59 {
60 Result.Append(": ");
61 Result.Append(ContactInfo.GetFriendlyName(this.Identity));
62 }
63
64 Result.Append('.');
65
66 return Task.FromResult(Result.ToString());
67 }
68
69 }
70}
A strongly-typed resource class, for looking up localized strings, etc.
static string RequestSignature
Looks up a localized string similar to Request signature.
Contains information about a contact.
Definition: ContactInfo.cs:22
static async Task< string > GetFriendlyName(CaseInsensitiveString RemoteId)
Gets the friendly name of a remote identity (Legal ID or Bare JID).
Definition: ContactInfo.cs:258
override Task< string > GetDescription()
Gets a descriptive text for the category of event.
RequestSignatureNotificationEvent(SignaturePetitionEventArgs e)
Notification event for signature petitions.
Base class that references services in the app.
Definition: ServiceRef.cs:43
static INavigationService NavigationService
The navigation service for navigating between pages.
Definition: ServiceRef.cs:178
static IReportingStringLocalizer Localizer
Localization service
Definition: ServiceRef.cs:370
Holds navigation parameters specific to views displaying a petition of a signature.
A page to display when the user is asked to petition a signature.