Event

Event

A value object that represents an event.

A single event or an array of events are returned by many methods of EntityAttribute.

You can't instantiate an Event yourself.

Members

createdAt :Number

Source:

The timestamp of the event. It represents the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.

Type:
  • Number

entityId :String

Source:

The ID of the entity.

Type:
  • String

value :String

Source:

The value of the attribute.

Type:
  • String

Methods

equals()

Source:

Compares this event to the given object. The result is true if and only if the argument is defined and is an Event object that represents the same (entityId, value, createdAt).