Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PeerRequestIdentityReviewNotificationEvent.cs
1
using
System.Text;
2
using
NeuroAccessMaui.Resources.Languages
;
3
using
NeuroAccessMaui.Services.Contacts
;
4
using
NeuroAccessMaui.UI.Pages.Identity.ViewIdentity
;
5
using
Waher.Networking.XMPP.Contracts
;
6
7
namespace
NeuroAccessMaui.Services.Notification.Identities
8
{
12
public
class
PeerRequestIdentityReviewNotificationEvent
:
IdentityNotificationEvent
13
{
17
public
PeerRequestIdentityReviewNotificationEvent
()
18
: base()
19
{
20
}
21
26
public
PeerRequestIdentityReviewNotificationEvent
(SignaturePetitionEventArgs e)
27
: base(e)
28
{
29
}
30
34
public
override
async Task
Open
()
35
{
36
if
(this.
Identity
is not
null
)
37
{
38
await
ServiceRef
.
UiService
.GoToAsync(nameof(
ViewIdentityPage
),
new
ViewIdentityNavigationArgs(this.
Identity
,
39
this.
RequestorFullJid
, this.
SignatoryIdentityId
, this.
PetitionId
, this.
Purpose
, this.
ContentToSign
));
40
}
41
}
42
46
public
override
Task<string>
GetDescription
()
47
{
48
StringBuilder Result =
new
();
49
50
Result.Append(
ServiceRef
.
Localizer
[nameof(AppResources.IdentityReviewRequest)]);
51
52
if
(this.
Identity
is not
null
)
53
{
54
Result.Append(
": "
);
55
Result.Append(
ContactInfo
.
GetFriendlyName
(
this
.Identity));
56
}
57
58
Result.Append(
'.'
);
59
60
return
Task.FromResult(Result.ToString());
61
}
62
63
}
64
}
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.Identities.IdentityNotificationEvent
Abstract base class of Identity notification events.
Definition:
IdentityNotificationEvent.cs:16
NeuroAccessMaui.Services.Notification.Identities.IdentityNotificationEvent.Identity
LegalIdentity? Identity
Gets a parsed identity.
Definition:
IdentityNotificationEvent.cs:126
NeuroAccessMaui.Services.Notification.Identities.IdentityNotificationEvent.ContentToSign
byte?[] ContentToSign
Content to sign.
Definition:
IdentityNotificationEvent.cs:114
NeuroAccessMaui.Services.Notification.Identities.IdentityNotificationEvent.RequestorFullJid
string? RequestorFullJid
Full JID of requestor.
Definition:
IdentityNotificationEvent.cs:94
NeuroAccessMaui.Services.Notification.Identities.IdentityNotificationEvent.PetitionId
string? PetitionId
Petition ID
Definition:
IdentityNotificationEvent.cs:104
NeuroAccessMaui.Services.Notification.Identities.IdentityNotificationEvent.SignatoryIdentityId
string? SignatoryIdentityId
Legal identity of petitioned signatory.
Definition:
IdentityNotificationEvent.cs:99
NeuroAccessMaui.Services.Notification.Identities.IdentityNotificationEvent.Purpose
string? Purpose
Purpose
Definition:
IdentityNotificationEvent.cs:109
NeuroAccessMaui.Services.Notification.Identities.PeerRequestIdentityReviewNotificationEvent
Notification event for peer reviews of identities.
Definition:
PeerRequestIdentityReviewNotificationEvent.cs:13
NeuroAccessMaui.Services.Notification.Identities.PeerRequestIdentityReviewNotificationEvent.GetDescription
override Task< string > GetDescription()
Gets a descriptive text for the category of event.
Definition:
PeerRequestIdentityReviewNotificationEvent.cs:46
NeuroAccessMaui.Services.Notification.Identities.PeerRequestIdentityReviewNotificationEvent.PeerRequestIdentityReviewNotificationEvent
PeerRequestIdentityReviewNotificationEvent(SignaturePetitionEventArgs e)
Notification event for contract proposals.
Definition:
PeerRequestIdentityReviewNotificationEvent.cs:26
NeuroAccessMaui.Services.Notification.Identities.PeerRequestIdentityReviewNotificationEvent.PeerRequestIdentityReviewNotificationEvent
PeerRequestIdentityReviewNotificationEvent()
Notification event for peer reviews of identities.
Definition:
PeerRequestIdentityReviewNotificationEvent.cs:17
NeuroAccessMaui.Services.Notification.Identities.PeerRequestIdentityReviewNotificationEvent.Open
override async Task Open()
Opens the event.
Definition:
PeerRequestIdentityReviewNotificationEvent.cs:34
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.Identity.ViewIdentity.ViewIdentityPage
A page to display when the user wants to view an identity.
Definition:
ViewIdentityPage.xaml.cs:11
NeuroAccessMaui.Resources.Languages
Definition:
AppResources.Designer.cs:11
NeuroAccessMaui.Services.Contacts
Definition:
ContactInfo.cs:11
NeuroAccessMaui.Services.Notification.Identities
Definition:
IdentityNotificationEvent.cs:11
NeuroAccessMaui.UI.Pages.Identity.ViewIdentity
Definition:
ViewIdentityNavigationArgs.cs:5
Waher.Networking.XMPP.Contracts
Definition:
Attachment.cs:4
NeuroAccessMaui
NeuroAccessMaui
Services
Notification
Identities
PeerRequestIdentityReviewNotificationEvent.cs
Generated by
1.9.5