Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CreatedItem.cs
3
5{
10 public class CreatedItem(Created Event) : OwnershipEventItem(Event)
11 {
12 private readonly Created @event = Event;
13 private string? creatorFriendlyName;
14
18 public override EventType Type => EventType.Created;
19
23 public string Creator => this.@event.Creator;
24
28 public string CreatorFriendlyName => this.creatorFriendlyName ?? string.Empty;
29
33 public override async Task DoBind()
34 {
35 await base.DoBind();
36
37 this.creatorFriendlyName = await ContactInfo.GetFriendlyName(this.Creator);
38 }
39 }
40}
Contains information about a contact.
Definition: ContactInfo.cs:21
static async Task< string > GetFriendlyName(CaseInsensitiveString RemoteId)
Gets the friendly name of a remote identity (Legal ID or Bare JID).
Definition: ContactInfo.cs:257
Event raised when a token has been created.
Definition: Created.cs:10
Created()
Event raised when a token has been created.
Definition: Created.cs:16
abstract class OwnershipEventItem(TokenOwnershipEvent Event)
Represents a token ownership event.
class CreatedItem(Created Event)
Represents a token creation event.
Definition: CreatedItem.cs:10