Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OwnershipEventItem.cs
3
5{
10 public abstract class OwnershipEventItem(TokenOwnershipEvent Event) : ValueEventItem(Event)
11 {
12 private readonly TokenOwnershipEvent @event = Event;
13 private string? ownerFriendlyName;
14
18 public string Owner => this.@event.Owner;
19
23 public string OwnershipContract => this.@event.OwnershipContract;
24
28 public string OwnerFriendlyName => this.ownerFriendlyName ?? string.Empty;
29
33 public override async Task DoBind()
34 {
35 await base.DoBind();
36
37 this.ownerFriendlyName = await ContactInfo.GetFriendlyName(this.Owner);
38 }
39
40 }
41}
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
Abstract base class for token events defining ownership
abstract class OwnershipEventItem(TokenOwnershipEvent Event)
Represents a token ownership event.
abstract class ValueEventItem(TokenValueEvent Event)
Represents a token value event.