Constructs a new event object with the specified name. An optional sequence of key, value pairs can be appended to define properties.
Example:
new EventObject("eventName", key1, val1, .., keyN, valN)
Holds the consumed state. Default is false.
Holds the name.
Holds the properties as an associative array.
EventObject
is a wrapper for all properties of a single event.Additionally, it also offers functions to consume the event and check if it was consumed as follows: