Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PropertySetEvent

Base event for any set property of some element.

Hierarchy

Index

Constructors

constructor

  • new PropertySetEvent(sourceId: Guid, version: number, type: EventType, timestamp: number, elementId: Guid, propertyName: string, propertyValue: any): PropertySetEvent
  • 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.

    • elementId: Guid

      The RFC4122 v4 compliant ID of the element for which the property was set.

    • propertyName: string

      The name of the property that was set.

    • propertyValue: any

      The value of the property that was set.

    Returns PropertySetEvent

Properties

elementId

elementId: Guid

The RFC4122 v4 compliant ID of the element for which the property was set.

propertyName

propertyName: string

The name of the property that was set.

propertyValue

propertyValue: any

The value of the property that was set.

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