Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LedgerEntry.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4
6{
11 public class LedgerEntry<T> : ILedgerEntry<T>
12 {
13 private readonly Entry entry;
14 private readonly T decoded;
15
21 public LedgerEntry(Entry Entry, T Decoded)
22 {
23 this.entry = Entry;
24 this.decoded = Decoded;
25 }
26
30 public EntryType EntryType => this.entry.Type;
31
35 public DateTimeOffset EntryTimestamp => this.entry.Timestamp;
36
40 public T Object => this.decoded;
41
42
46 public byte[] Encoded => this.entry.Data;
47 }
48}
Represents an entry in a block or bucket file.
Definition: Entry.cs:11
EntryType Type
Entry Type
Definition: Entry.cs:32
Represents a decoded ledger entry.
Definition: LedgerEntry.cs:12
byte[] Encoded
Encoded entry object.
Definition: LedgerEntry.cs:46
DateTimeOffset EntryTimestamp
Timestamp of entry
Definition: LedgerEntry.cs:35
T Object
Decoded entry object.
Definition: LedgerEntry.cs:40
LedgerEntry(Entry Entry, T Decoded)
Represents a decoded ledger entry.
Definition: LedgerEntry.cs:21
Interface for ledger entries.
Definition: ILedgerEntry.cs:36
EntryType
Ledger entry type.
Definition: ILedgerEntry.cs:9