EventRecord class

Represents a previously written event.

Constructors

EventRecord(String eventStreamId, UuidValue eventId, StreamPosition eventNumber, LogPosition position, List<int> data, List<int> customMetadata, Map<String, String> metadata)
Constructs a new EventRecord.

Properties

contentType String
The Content-Type of the event's data.
final
created DateTime
A UTC DateTime representing when this event was created in the system.
final
data UnmodifiableListView<int>
The raw bytes representing the data of this event.
final
eventId → UuidValue
The UuidValue representing this event.
final
eventNumber StreamPosition
The StreamPosition of this event in the stream.
final
eventStreamId String
The stream that this event belongs to.
final
eventType String
The type of event this is.
final
hashCode int
The hash code for this object.
no setterinherited
isJson bool
Check if contentType is ContentTypes.ApplicationJson
no setter
isOctetStream bool
Check if contentType is ContentTypes.ApplicationOctetStream
no setter
metadata UnmodifiableListView<int>
The raw bytes representing the metadata of this event.
final
position LogPosition
The LogPosition o this event in the $all stream.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited