Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IsFriendNotificationEvent.cs
5
7{
12 {
17 : base()
18 {
19 }
20
25 public IsFriendNotificationEvent(IsFriendEventArgs e)
26 : base(e)
27 {
28 }
29
33 public override async Task<string> GetDescription()
34 {
35 string ThingName = await ContactInfo.GetFriendlyName(this.BareJid);
36 string RemoteName = await ContactInfo.GetFriendlyName(this.RemoteJid);
37
38 return ServiceRef.Localizer[nameof(AppResources.AccessRequestText), RemoteName, ThingName];
39 }
40
44 public override async Task Open()
45 {
46 string ThingName = await ContactInfo.GetFriendlyName(this.BareJid);
47 string RemoteName = await ContactInfo.GetFriendlyName(this.RemoteJid);
48
49 await ServiceRef.UiService.GoToAsync(nameof(IsFriendPage), new IsFriendNavigationArgs(this, ThingName, RemoteName));
50 }
51 }
52}
Contains information about a contact.
Definition: ContactInfo.cs:21
static async Task< string > GetFriendlyName(CaseInsensitiveString RemoteId)
Gets the friendly name of a remote identity (Legal ID or Bare JID).
Definition: ContactInfo.cs:257
Contains information about a request to become "friends", i.e. subscribe to presence.
override async Task< string > GetDescription()
Gets a descriptive text for the event.
IsFriendNotificationEvent(IsFriendEventArgs e)
Contains information about a request to become "friends", i.e. subscribe to presence.
IsFriendNotificationEvent()
Contains information about a request to become "friends", i.e. subscribe to presence.
Base class that references services in the app.
Definition: ServiceRef.cs:31
static IUiService UiService
Service serializing and managing UI-related tasks.
Definition: ServiceRef.cs:55
static IStringLocalizer Localizer
Localization service
Definition: ServiceRef.cs:235
Holds navigation parameters specific to displaying the is-friend provisioning question.
A page that asks the user if a remote entity is allowed to connect to a device.