Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Event

Base event.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Event(sourceId: Guid, version: number, type: EventType, timestamp: number): Event
  • Parameters

    • sourceId: Guid

      The RFC4122 v4 compliant ID of the command that caused this event.

    • version: number

      The new current version number.

    • type: EventType

      The type of this event.

    • timestamp: number

      The timestamp for the moment this event was created in milliseconds elapsed since 1 January 1970 00:00:00 UTC.

    Returns Event

Properties

sourceId

sourceId: Guid

The RFC4122 v4 compliant ID of the command that caused this event.

timestamp

timestamp: number

The timestamp for the moment this event was created in milliseconds elapsed since 1 January 1970 00:00:00 UTC.

type

type: EventType

The type of this event.

version

version: number

The new version number after applying this event.

Methods

toJson

  • toJson(): string

Generated using TypeDoc