Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IsFriendNotificationEvent.cs
6
8{
13 {
18 : base()
19 {
20 }
21
27 : base(e)
28 {
29 }
30
34 public override async Task<string> GetDescription()
35 {
36 string ThingName = await ContactInfo.GetFriendlyName(this.BareJid);
37 string RemoteName = await ContactInfo.GetFriendlyName(this.RemoteJid);
38
39 return ServiceRef.Localizer[nameof(AppResources.AccessRequestText), RemoteName, ThingName];
40 }
41
45 public override async Task Open()
46 {
47 string ThingName = await ContactInfo.GetFriendlyName(this.BareJid);
48 string RemoteName = await ContactInfo.GetFriendlyName(this.RemoteJid);
49
50 await ServiceRef.NavigationService.GoToAsync(nameof(IsFriendPage), new IsFriendNavigationArgs(this, ThingName, RemoteName));
51 }
52 }
53}
A strongly-typed resource class, for looking up localized strings, etc.
static string AccessRequestText
Looks up a localized string similar to {0} wants to connect to your device {1}..
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
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: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 displaying the is-friend provisioning question.
A page that asks the user if a remote entity is allowed to connect to a device.