Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DonatedItem.cs
3
5{
10 public class DonatedItem(Donated Event) : OwnershipEventItem(Event)
11 {
12 private readonly Donated @event = Event;
13 private string? donorFriendlyName;
14
18 public override EventType Type => EventType.Donated;
19
23 public string Donor => this.@event.Donor;
24
28 public string DonorFriendlyName => this.donorFriendlyName ?? string.Empty;
29
33 public override async Task DoBind()
34 {
35 await base.DoBind();
36
37 this.donorFriendlyName = await ContactInfo.GetFriendlyName(this.Donor);
38 }
39 }
40}
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
Event raised when a token has been donated.
Definition: Donated.cs:10
Donated()
Event raised when a token has been donated.
Definition: Donated.cs:16
abstract class OwnershipEventItem(TokenOwnershipEvent Event)
Represents a token ownership event.
class DonatedItem(Donated Event)
Represents a token donation event.
Definition: DonatedItem.cs:10