forked from PeterWaher/IoTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathILedgerEntry.cs
More file actions
63 lines (56 loc) · 907 Bytes
/
Copy pathILedgerEntry.cs
File metadata and controls
63 lines (56 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System;
using System.Collections.Generic;
using System.Text;
namespace Waher.Persistence
{
/// <summary>
/// Ledger entry type.
/// </summary>
public enum EntryType
{
/// <summary>
/// New entry
/// </summary>
New = 1,
/// <summary>
/// Update entry
/// </summary>
Update = 2,
/// <summary>
/// Delete entry
/// </summary>
Delete = 3,
/// <summary>
/// Collection cleared
/// </summary>
Clear = 4
}
/// <summary>
/// Interface for ledger entries.
/// </summary>
/// <typeparam name="T">Type of objects being processed.</typeparam>
public interface ILedgerEntry<T>
{
/// <summary>
/// Type of ledger entry
/// </summary>
EntryType EntryType
{
get;
}
/// <summary>
/// Timestamp of entry
/// </summary>
DateTimeOffset EntryTimestamp
{
get;
}
/// <summary>
/// Entry
/// </summary>
T Object
{
get;
}
}
}