Package ai.tock.bot.engine.event
Class Event
-
- All Implemented Interfaces:
public abstract class EventThe base class for all events or actions.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringapplicationIdprivate final Id<out Event>idprivate final Instantdateprivate final EventStatestate
-
Constructor Summary
Constructors Constructor Description Event(String applicationId, Id<out Event> id, Instant date, EventState state)
-
Method Summary
Modifier and Type Method Description final StringgetApplicationId()The bot application id. final Id<out Event>getId()The unique id of the event. final InstantgetDate()The creation date of the event. final EventStategetState()The state of the event. final BooleanhasEntity(String role)Does this event contains specified role entity? final BooleanhasEntityPredefinedValue(String role, String value)Does this event contains specified predefined value entity? -
-
Constructor Detail
-
Event
Event(String applicationId, Id<out Event> id, Instant date, EventState state)
-
-
Method Detail
-
getApplicationId
final String getApplicationId()
The bot application id.
-
getState
final EventState getState()
The state of the event.
-
hasEntityPredefinedValue
final Boolean hasEntityPredefinedValue(String role, String value)
Does this event contains specified predefined value entity?
-
-
-
-