Package ai.tock.bot.engine.action
Class SendChoice
-
- All Implemented Interfaces:
public final class SendChoice extends Action
A user choice (click on a button or direct action).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSendChoice.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringTITLE_PARAMETERpublic final static StringURL_PARAMETERpublic final static StringIMAGE_PARAMETERpublic final static StringEXIT_INTENTpublic final static StringPHONE_CALL_INTENTpublic final static StringLOGIN_INTENTpublic final static StringLOGOUT_INTENTpublic final static StringSTEP_PARAMETERpublic final static StringPREVIOUS_INTENT_PARAMETERpublic final static StringNLPpublic final static StringSOURCE_APP_IDpublic final static StringREFERRAL_PARAMETERprivate final StringreferralParameterprivate final StringintentNameprivate final Map<String, String>parametersprivate final PlayerIdplayerIdprivate final PlayerIdrecipientIdprivate final ActionMetadatametadataprivate final StringapplicationIdprivate final Id<out Event>idprivate final Instantdateprivate final EventStatestatepublic final static SendChoice.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description SendChoice(PlayerId playerId, String applicationId, PlayerId recipientId, String intentName, StoryStep<out StoryHandlerDefinition> step, Map<String, String> parameters, Id<Action> id, Instant date, EventState state, ActionMetadata metadata)SendChoice(PlayerId playerId, String applicationId, PlayerId recipientId, String intentName, Map<String, String> parameters, Id<Action> id, Instant date, EventState state, ActionMetadata metadata)
-
Method Summary
Modifier and Type Method Description final StringgetReferralParameter()final StringgetIntentName()final Map<String, String>getParameters()MessagetoMessage()final Stringstep()The step of this choice (when applicable). final StringsourceAppId()The source application id (if any) ie the creator of the choice. final StringtoEncodedId()Provides the id used by connectors. StringtoString()-
Methods inherited from class ai.tock.bot.engine.action.Action
booleanChoice, choice, getMetadata, getPlayerId, getRecipientId, jsonChoice, toActionId -
Methods inherited from class ai.tock.bot.engine.event.Event
getApplicationId, getDate, getId, getState, hasEntity, hasEntityPredefinedValue -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SendChoice
SendChoice(PlayerId playerId, String applicationId, PlayerId recipientId, String intentName, StoryStep<out StoryHandlerDefinition> step, Map<String, String> parameters, Id<Action> id, Instant date, EventState state, ActionMetadata metadata)
-
-
Method Detail
-
getReferralParameter
final String getReferralParameter()
-
getIntentName
final String getIntentName()
-
getParameters
final Map<String, String> getParameters()
-
sourceAppId
final String sourceAppId()
The source application id (if any) ie the creator of the choice.
-
toEncodedId
final String toEncodedId()
Provides the id used by connectors.
-
-
-
-