Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ContactListNavigationArgs.cs
3
5{
10 {
14 MakePayment,
15
19 ViewIdentity,
20
24 Select
25 }
26
31 {
32 private readonly string? description;
33 private readonly SelectContactAction? action;
34 private readonly TaskCompletionSource<ContactInfoModel?>? selection;
35
40 {
41 }
42
49 {
50 this.description = Description;
51 this.action = Action;
52 }
53
59 public ContactListNavigationArgs(string Description, TaskCompletionSource<ContactInfoModel?> Selection)
60 : this(Description, SelectContactAction.Select)
61 {
62 this.selection = Selection;
63 }
64
68 public string? Description => this.description;
69
73 public SelectContactAction? Action => this.action;
74
78 public TaskCompletionSource<ContactInfoModel?>? Selection => this.selection;
79
83 public bool CanScanQrCode { get; set; } = false;
84
88 public bool AllowAnonymous { get; set; } = false;
89
93 public string? AnonymousText { get; set; }
94
98 public IEnumerable<ContactInfo>? Contacts { get; set; }
99
100 }
101}
An base class holding page specific navigation parameters.
Holds navigation parameters specific to views displaying a list of contacts.
SelectContactAction? Action
Action to take when a contact has been selected.
TaskCompletionSource< ContactInfoModel?>? Selection
Selection source, if selecting identity.
ContactListNavigationArgs(string Description, SelectContactAction Action)
Creates an instance of the ContactListNavigationArgs class.
bool AllowAnonymous
If user is allowed to select an Anonymous option.
ContactListNavigationArgs(string Description, TaskCompletionSource< ContactInfoModel?> Selection)
Creates an instance of the ContactListNavigationArgs class.
ContactListNavigationArgs()
Creates an instance of the ContactListNavigationArgs class.
SelectContactAction
Actions to take when a contact has been selected.