Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
RequestIdentityNotificationEvent.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 {
39 await ServiceRef.NavigationService.GoToAsync(nameof(PetitionIdentityPage), new PetitionIdentityNavigationArgs(
40 this.Identity, this.RequestorFullJid, this.SignatoryIdentityId, this.PetitionId, this.Purpose));
41 }
42 }
43
47 public override Task<string> GetDescription()
48 {
49 StringBuilder Result = new();
50
52
53 if (this.Identity is not null)
54 {
55 Result.Append(": ");
56 Result.Append(ContactInfo.GetFriendlyName(this.Identity));
57 }
58
59 Result.Append('.');
60
61 return Task.FromResult(Result.ToString());
62 }
63
64 }
65}
A strongly-typed resource class, for looking up localized strings, etc.
static string RequestToAccessIdentity
Looks up a localized string similar to Request to access identity.
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
RequestIdentityNotificationEvent(LegalIdentityPetitionEventArgs e)
Notification event for identity petitions.
override Task< string > GetDescription()
Gets a descriptive text for the category of event.
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
A page to display when the user is asked to petition an identity.