Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IsFriendNotificationEvent.cs
1
using
NeuroAccessMaui.Resources.Languages
;
2
using
NeuroAccessMaui.Services.Contacts
;
3
using
NeuroAccessMaui.UI.Pages.Things.IsFriend
;
4
using
Waher.Networking.XMPP.Provisioning
;
5
6
namespace
NeuroAccessMaui.Services.Notification.Things
7
{
11
public
class
IsFriendNotificationEvent
:
ProvisioningNotificationEvent
12
{
16
public
IsFriendNotificationEvent
()
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
}
NeuroAccessMaui.Services.Contacts.ContactInfo
Contains information about a contact.
Definition:
ContactInfo.cs:21
NeuroAccessMaui.Services.Contacts.ContactInfo.GetFriendlyName
static async Task< string > GetFriendlyName(CaseInsensitiveString RemoteId)
Gets the friendly name of a remote identity (Legal ID or Bare JID).
Definition:
ContactInfo.cs:257
NeuroAccessMaui.Services.Notification.Things.IsFriendNotificationEvent
Contains information about a request to become "friends", i.e. subscribe to presence.
Definition:
IsFriendNotificationEvent.cs:12
NeuroAccessMaui.Services.Notification.Things.IsFriendNotificationEvent.GetDescription
override async Task< string > GetDescription()
Gets a descriptive text for the event.
Definition:
IsFriendNotificationEvent.cs:33
NeuroAccessMaui.Services.Notification.Things.IsFriendNotificationEvent.Open
override async Task Open()
Opens the event.
Definition:
IsFriendNotificationEvent.cs:44
NeuroAccessMaui.Services.Notification.Things.IsFriendNotificationEvent.IsFriendNotificationEvent
IsFriendNotificationEvent(IsFriendEventArgs e)
Contains information about a request to become "friends", i.e. subscribe to presence.
Definition:
IsFriendNotificationEvent.cs:25
NeuroAccessMaui.Services.Notification.Things.IsFriendNotificationEvent.IsFriendNotificationEvent
IsFriendNotificationEvent()
Contains information about a request to become "friends", i.e. subscribe to presence.
Definition:
IsFriendNotificationEvent.cs:16
NeuroAccessMaui.Services.Notification.Things.ProvisioningNotificationEvent
Abstract base class of provisioning notification events.
Definition:
ProvisioningNotificationEvent.cs:12
NeuroAccessMaui.Services.Notification.Things.ProvisioningNotificationEvent.RemoteJid
string? RemoteJid
JID of remote entity wishing to perform a task.
Definition:
ProvisioningNotificationEvent.cs:39
NeuroAccessMaui.Services.Notification.Xmpp.XmppNotificationEvent.BareJid
string BareJid
Bare JID of sender.
Definition:
XmppNotificationEvent.cs:19
NeuroAccessMaui.Services.ServiceRef
Base class that references services in the app.
Definition:
ServiceRef.cs:31
NeuroAccessMaui.Services.ServiceRef.UiService
static IUiService UiService
Service serializing and managing UI-related tasks.
Definition:
ServiceRef.cs:55
NeuroAccessMaui.Services.ServiceRef.Localizer
static IStringLocalizer Localizer
Localization service
Definition:
ServiceRef.cs:235
NeuroAccessMaui.UI.Pages.Things.IsFriend.IsFriendNavigationArgs
Holds navigation parameters specific to displaying the is-friend provisioning question.
Definition:
IsFriendNavigationArgs.cs:9
NeuroAccessMaui.UI.Pages.Things.IsFriend.IsFriendPage
A page that asks the user if a remote entity is allowed to connect to a device.
Definition:
IsFriendPage.xaml.cs:10
NeuroAccessMaui.Resources.Languages
Definition:
AppResources.Designer.cs:11
NeuroAccessMaui.Services.Contacts
Definition:
ContactInfo.cs:11
NeuroAccessMaui.Services.Notification.Things
Definition:
CanControlNotificationEvent.cs:11
NeuroAccessMaui.UI.Pages.Things.IsFriend
Definition:
FriendshipResolver.cs:8
Waher.Networking.XMPP.Provisioning
Definition:
CachedQuery.cs:5
NeuroAccessMaui
NeuroAccessMaui
Services
Notification
Things
IsFriendNotificationEvent.cs
Generated by
1.9.5