Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ExportEntryOffset.cs
1using System;
4
6{
11 {
12 private int offset;
13
19 public ExportEntryOffset(ILedgerExport Output, int Offset)
20 : base(Output)
21 {
22 this.offset = Offset;
23 }
24
33 public override bool IncludeEntry(string ObjectId, string TypeName, EntryType EntryType, DateTimeOffset EntryTimestamp)
34 {
35 if (this.offset > 0)
36 {
37 this.offset--;
38 return false;
39 }
40 else
41 return true;
42 }
43
48 public override bool IncludeNonEntryEvent()
49 {
50 return this.offset <= 0;
51 }
52
53 }
54}
Abstract base class for ledger exports with custom entry filter rules.
Skips a number of entries
override bool IncludeNonEntryEvent()
If a non-entry event should be included.
override bool IncludeEntry(string ObjectId, string TypeName, EntryType EntryType, DateTimeOffset EntryTimestamp)
If an entry should be included.
ExportEntryOffset(ILedgerExport Output, int Offset)
Skips a number of entries
EntryType
Ledger entry type.
Definition: ILedgerEntry.cs:9