-
public final class EventStateState in event scope.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<EntityValue>entityValuesprivate BooleantestEventprivate ConnectorTypetargetConnectorTypeprivate UserInterfaceTypeuserInterfaceprivate BooleanuserVerifiedprivate Stringintentprivate Stringstepprivate Booleannotificationprivate StringsourceApplicationId
-
Constructor Summary
Constructors Constructor Description EventState(List<EntityValue> entityValues, Boolean testEvent, ConnectorType targetConnectorType, UserInterfaceType userInterface, Boolean userVerified, String intent, String step, Boolean notification, String sourceApplicationId)
-
Method Summary
Modifier and Type Method Description final List<EntityValue>getEntity(String role)final List<EntityValue>component1()final Booleancomponent2()final ConnectorTypecomponent3()final UserInterfaceTypecomponent4()final Booleancomponent5()final Stringcomponent6()final Stringcomponent7()final Booleancomponent8()final Stringcomponent9()final EventStatecopy(List<EntityValue> entityValues, Boolean testEvent, ConnectorType targetConnectorType, UserInterfaceType userInterface, Boolean userVerified, String intent, String step, Boolean notification, String sourceApplicationId)final List<EntityValue>getEntityValues()The entity values. final BooleangetTestEvent()Is it a "test" event - flag used by automatic tests. final ConnectorTypegetTargetConnectorType()The target connector type - usually the source connector but not always. final UserInterfaceTypegetUserInterface()The user interface - if different of default interface of ConnectorType. final BooleangetUserVerified()The user verification status. final StringgetIntent()The current intent of the action. final StringgetStep()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 StringgetSourceApplicationId()For notification event, what is the source of the notification if known? final UnitsetTestEvent(Boolean testEvent)Is it a "test" event - flag used by automatic tests. final UnitsetTargetConnectorType(ConnectorType targetConnectorType)The target connector type - usually the source connector but not always. final UnitsetUserInterface(UserInterfaceType userInterface)The user interface - if different of default interface of ConnectorType. final UnitsetUserVerified(Boolean userVerified)The user verification status. final UnitsetIntent(String intent)The current intent of the action. final UnitsetStep(String step)The current step. 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 UnitsetSourceApplicationId(String sourceApplicationId)For notification event, what is the source of the notification if known? -
-
Constructor Detail
-
EventState
EventState(List<EntityValue> entityValues, Boolean testEvent, ConnectorType targetConnectorType, UserInterfaceType userInterface, Boolean userVerified, String intent, String step, Boolean notification, String sourceApplicationId)
-
-
Method Detail
-
getEntity
final List<EntityValue> getEntity(String role)
-
component1
final List<EntityValue> component1()
-
component2
final Boolean component2()
-
component3
final ConnectorType component3()
-
component4
final UserInterfaceType component4()
-
component5
final Boolean component5()
-
component6
final String component6()
-
component7
final String component7()
-
component8
final Boolean component8()
-
component9
final String component9()
-
copy
final EventState copy(List<EntityValue> entityValues, Boolean testEvent, ConnectorType targetConnectorType, UserInterfaceType userInterface, Boolean userVerified, String intent, String step, Boolean notification, String sourceApplicationId)
-
getEntityValues
final List<EntityValue> getEntityValues()
The entity values.
-
getTestEvent
final Boolean getTestEvent()
Is it a "test" event - flag used by automatic tests.
-
getTargetConnectorType
final ConnectorType getTargetConnectorType()
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.
-
getUserVerified
final Boolean getUserVerified()
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.
-
getSourceApplicationId
final String getSourceApplicationId()
For notification event, what is the source of the notification if known?
-
setTestEvent
final Unit setTestEvent(Boolean testEvent)
Is it a "test" event - flag used by automatic tests.
-
setTargetConnectorType
final Unit setTargetConnectorType(ConnectorType targetConnectorType)
The target connector type - usually the source connector but not always.
-
setUserInterface
final Unit setUserInterface(UserInterfaceType userInterface)
The user interface - if different of default interface of ConnectorType.
-
setUserVerified
final Unit setUserVerified(Boolean userVerified)
The user verification status.
-
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.
-
setSourceApplicationId
final Unit setSourceApplicationId(String sourceApplicationId)
For notification event, what is the source of the notification if known?
-
-
-
-