public class Event
The base class for all events or actions.
public Event(@NotNull
java.lang.String applicationId,
@NotNull
org.litote.kmongo.Id<? extends ai.tock.bot.engine.event.Event> id,
@NotNull
java.time.Instant date,
@NotNull
EventState state)
The base class for all events or actions.
applicationId - The bot application id.id - The unique id of the event.date - The creation date of the event.state - The state of the event.public boolean hasEntity(@NotNull
java.lang.String role)
Does this event contains specified role entity?
public boolean hasEntityPredefinedValue(@NotNull
java.lang.String role,
@NotNull
java.lang.String value)
Does this event contains specified predefined value entity?
@NotNull public Event obfuscate(@NotNull ai.tock.shared.security.StringObfuscatorMode mode)
Obfuscate the event - by default this method does nothing.
@NotNull public java.lang.String getApplicationId()
The bot application id.
@NotNull public org.litote.kmongo.Id<? extends ai.tock.bot.engine.event.Event> getId()
The unique id of the event.
@NotNull public java.time.Instant getDate()
The creation date of the event.
@NotNull public EventState getState()
The state of the event.