public class EventState
State in event scope.
public EventState(@NotNull
java.util.List<ai.tock.bot.engine.dialog.EntityValue> entityValues,
boolean testEvent,
@Nullable
ConnectorType targetConnectorType,
@Nullable
ai.tock.translator.UserInterfaceType userInterface,
boolean userVerified,
@Nullable
java.lang.String intent,
@Nullable
java.lang.String step,
boolean notification,
@Nullable
java.lang.String sourceApplicationId)
State in event scope.
entityValues - The entity values.testEvent - Is it a "test" event - flag used by automatic tests.targetConnectorType - The target connector type - usually the source connector but not always.userInterface - The user interface - if different of default interface of class ConnectorType.userVerified - The user verification status.intent - The current intent of the action.step - The current step.notification - If true, this event is not addressed to the bot, but the bot is notified that it has been sent in a multi users/bots conversation.
Default is false.
sourceApplicationId - For notification event, what is the source of the notification if known?public EventState()
State in event scope.
@NotNull
public java.util.List<ai.tock.bot.engine.dialog.EntityValue> getEntity(@NotNull
java.lang.String role)
@NotNull public java.util.List<ai.tock.bot.engine.dialog.EntityValue> getEntityValues()
The entity values.
public boolean getTestEvent()
Is it a
"test" event - flag used by automatic tests.
public void setTestEvent(boolean p)
Is it a
"test" event - flag used by automatic tests.
p - Is it a "test" event - flag used by automatic tests.@Nullable public ConnectorType getTargetConnectorType()
The target connector type
- usually the source connector but not always.
public void setTargetConnectorType(@Nullable
ConnectorType p)
The target connector type
- usually the source connector but not always.
p - The target connector type - usually the source connector but not always.@Nullable public ai.tock.translator.UserInterfaceType getUserInterface()
The user interface
- if different of default interface of class ConnectorType.
class ConnectorTypepublic void setUserInterface(@Nullable
ai.tock.translator.UserInterfaceType p)
The user interface
- if different of default interface of class ConnectorType.
p - The user interface - if different of default interface of class ConnectorType.class ConnectorTypepublic boolean getUserVerified()
The user verification status.
public void setUserVerified(boolean p)
The user verification status.
p - The user verification status.@Nullable public java.lang.String getIntent()
The current intent of the action.
public void setIntent(@Nullable
java.lang.String p)
The current intent of the action.
p - The current intent of the action.@Nullable public java.lang.String getStep()
The current step.
public void setStep(@Nullable
java.lang.String p)
The current step.
p - The current step.public boolean getNotification()
If true, this event is not addressed to the bot, but the bot is notified that it has been sent in a multi users/bots conversation.
Default is false.
public void setNotification(boolean p)
If true, this event is not addressed to the bot, but the bot is notified that it has been sent in a multi users/bots conversation.
Default is false.
p - If true, this event is not addressed to the bot, but the bot is notified that it has been sent in a multi users/bots conversation.
Default is false.
@Nullable public java.lang.String getSourceApplicationId()
For notification event,
what is the source of the notification if known?
public void setSourceApplicationId(@Nullable
java.lang.String p)
For notification event,
what is the source of the notification if known?
p - For notification event, what is the source of the notification if known?@NotNull public java.util.List<ai.tock.bot.engine.dialog.EntityValue> component1()
The entity values.
public boolean component2()
Is it a
"test" event - flag used by automatic tests.
@Nullable public ConnectorType component3()
The target connector type
- usually the source connector but not always.
@Nullable public ai.tock.translator.UserInterfaceType component4()
The user interface
- if different of default interface of class ConnectorType.
class ConnectorTypepublic boolean component5()
The user verification status.
@Nullable public java.lang.String component6()
The current intent of the action.
@Nullable public java.lang.String component7()
The current step.
public boolean component8()
If true, this event is not addressed to the bot, but the bot is notified that it has been sent in a multi users/bots conversation.
Default is false.
@Nullable public java.lang.String component9()
For notification event,
what is the source of the notification if known?
@NotNull public EventState copy(@NotNull java.util.List<ai.tock.bot.engine.dialog.EntityValue> entityValues, boolean testEvent, @Nullable ConnectorType targetConnectorType, @Nullable ai.tock.translator.UserInterfaceType userInterface, boolean userVerified, @Nullable java.lang.String intent, @Nullable java.lang.String step, boolean notification, @Nullable java.lang.String sourceApplicationId)
State in event scope.
@NotNull public java.lang.String toString()
State in event scope.
public int hashCode()
State in event scope.
public boolean equals(@Nullable
java.lang.Object p)
State in event scope.