-
- 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 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 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.
-
-
-
-