-
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 private 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 EventStatestate
-
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 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()final StringgetReferralParameter()final StringgetIntentName()final Map<String, String>getParameters()final PlayerIdgetPlayerId()final PlayerIdgetRecipientId()final ActionMetadatagetMetadata()final StringgetApplicationId()The bot application id. final Id<out Event>getId()The unique id of the event. final InstantgetDate()The creation date of the event. final EventStategetState()The state of the event. -
Methods inherited from class ai.tock.bot.engine.action.SendChoice
booleanChoice, choice, jsonChoice, toActionId -
Methods inherited from class ai.tock.bot.engine.action.Action
hasEntity, hasEntityPredefinedValue -
Methods inherited from class ai.tock.bot.engine.event.Event
equals, hashCode -
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
-
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.
-
getReferralParameter
final String getReferralParameter()
-
getIntentName
final String getIntentName()
-
getParameters
final Map<String, String> getParameters()
-
getPlayerId
final PlayerId getPlayerId()
-
getRecipientId
final PlayerId getRecipientId()
-
getMetadata
final ActionMetadata getMetadata()
-
getApplicationId
final String getApplicationId()
The bot application id.
-
getState
final EventState getState()
The state of the event.
-
-
-
-