Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SourceEvent.cs
1using System;
3
5{
9 [CollectionName("DataSourceEvents")]
10 [ArchivingTime(90)]
11 [Index("SourceId", "Timestamp")]
12 public abstract class SourceEvent
13 {
14 private string objectId = null;
15 private string sourceId = string.Empty;
16 private DateTime timestamp = DateTime.MinValue;
17
21 public SourceEvent()
22 {
23 }
24
28 [ObjectId]
29 public string ObjectId
30 {
31 get => this.objectId;
32 set => this.objectId = value;
33 }
34
38 [ShortName("s")]
39 public string SourceId
40 {
41 get => this.sourceId;
42 set => this.sourceId = value;
43 }
44
48 [ShortName("ts")]
49 public DateTime Timestamp
50 {
51 get => this.timestamp;
52 set => this.timestamp = value;
53 }
54
58 public abstract SourceEventType EventType
59 {
60 get;
61 }
62 }
63}
Abstract base class for all data source events.
Definition: SourceEvent.cs:13
abstract SourceEventType EventType
Type of data source event.
Definition: SourceEvent.cs:59
string SourceId
Data source identity.
Definition: SourceEvent.cs:40
string ObjectId
Persisted object ID. Is null if object not persisted.
Definition: SourceEvent.cs:30
DateTime Timestamp
Timestamp of event.
Definition: SourceEvent.cs:50
SourceEvent()
Abstract base class for all data source events.
Definition: SourceEvent.cs:21
SourceEventType
Data Source event types