Class EventState
-
- All Implemented Interfaces:
public final class EventStateState in event scope.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<EntityValue>entityValuesprivate BooleantestEventprivate ConnectorTypesourceConnectorTypeprivate ConnectorTypetargetConnectorTypeprivate UserInterfaceTypeuserInterfaceprivate BooleanuserVerifiedprivate Stringintentprivate Stringstepprivate Booleannotificationprivate StringsourceApplicationId
-
Constructor Summary
Constructors Constructor Description EventState(List<EntityValue> entityValues, Boolean testEvent, ConnectorType sourceConnectorType, ConnectorType targetConnectorType, UserInterfaceType userInterface, Boolean userVerified, String intent, String step, Boolean notification, String sourceApplicationId)
-
Method Summary
Modifier and Type Method Description final List<EntityValue>getEntityValues()The entity values. final BooleangetTestEvent()Is it a "test" event - flag used by automatic tests. final UnitsetTestEvent(Boolean testEvent)Is it a "test" event - flag used by automatic tests. final ConnectorTypegetSourceConnectorType()The source connector type. final UnitsetSourceConnectorType(ConnectorType sourceConnectorType)The source connector type. final ConnectorTypegetTargetConnectorType()The target connector type - usually the source connector but not always. final UnitsetTargetConnectorType(ConnectorType targetConnectorType)The target connector type - usually the source connector but not always. final UserInterfaceTypegetUserInterface()The user interface - if different of default interface of ConnectorType. final UnitsetUserInterface(UserInterfaceType userInterface)The user interface - if different of default interface of ConnectorType. final BooleangetUserVerified()The user verification status. final UnitsetUserVerified(Boolean userVerified)The user verification status. final StringgetIntent()The current intent of the action. final UnitsetIntent(String intent)The current intent of the action. final StringgetStep()The current step. final UnitsetStep(String step)The current step. final BooleangetNotification()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. final UnitsetNotification(Boolean 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. final StringgetSourceApplicationId()For notification event, what is the source of the notification if known? final UnitsetSourceApplicationId(String sourceApplicationId)For notification event, what is the source of the notification if known? final List<EntityValue>getEntity(String role)-
-
Constructor Detail
-
EventState
EventState(List<EntityValue> entityValues, Boolean testEvent, ConnectorType sourceConnectorType, ConnectorType targetConnectorType, UserInterfaceType userInterface, Boolean userVerified, String intent, String step, Boolean notification, String sourceApplicationId)
-
-
Method Detail
-
getEntityValues
final List<EntityValue> getEntityValues()
The entity values.
-
getTestEvent
final Boolean getTestEvent()
Is it a "test" event - flag used by automatic tests.
-
setTestEvent
final Unit setTestEvent(Boolean testEvent)
Is it a "test" event - flag used by automatic tests.
-
getSourceConnectorType
final ConnectorType getSourceConnectorType()
The source connector type.
-
setSourceConnectorType
final Unit setSourceConnectorType(ConnectorType sourceConnectorType)
The source connector type.
-
getTargetConnectorType
final ConnectorType getTargetConnectorType()
The target connector type - usually the source connector but not always.
-
setTargetConnectorType
final Unit setTargetConnectorType(ConnectorType targetConnectorType)
The target connector type - usually the source connector but not always.
-
getUserInterface
final UserInterfaceType getUserInterface()
The user interface - if different of default interface of ConnectorType.
-
setUserInterface
final Unit setUserInterface(UserInterfaceType userInterface)
The user interface - if different of default interface of ConnectorType.
-
getUserVerified
final Boolean getUserVerified()
The user verification status.
-
setUserVerified
final Unit setUserVerified(Boolean userVerified)
The user verification status.
-
getNotification
final 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.
-
setNotification
final Unit setNotification(Boolean 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.
-
getSourceApplicationId
final String getSourceApplicationId()
For notification event, what is the source of the notification if known?
-
setSourceApplicationId
final Unit setSourceApplicationId(String sourceApplicationId)
For notification event, what is the source of the notification if known?
-
getEntity
final List<EntityValue> getEntity(String role)
-
-
-
-