-
public class SendAttachment extends Action
A simple attachment file sent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumSendAttachment.AttachmentType
-
Field Summary
Fields Modifier and Type Field Description private final Stringurlprivate final SendAttachment.AttachmentTypetypeprivate final PlayerIdplayerIdprivate final PlayerIdrecipientIdprivate final ActionMetadatametadataprivate final StringapplicationIdprivate final Id<out Event>idprivate final Instantdateprivate final EventStatestate
-
Constructor Summary
Constructors Constructor Description SendAttachment(PlayerId playerId, String applicationId, PlayerId recipientId, String url, SendAttachment.AttachmentType type, Id<Action> id, Instant date, EventState state, ActionMetadata metadata)
-
Method Summary
Modifier and Type Method Description MessagetoMessage()final StringgetUrl()final SendAttachment.AttachmentTypegetType()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.SendAttachment
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, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SendAttachment
SendAttachment(PlayerId playerId, String applicationId, PlayerId recipientId, String url, SendAttachment.AttachmentType type, Id<Action> id, Instant date, EventState state, ActionMetadata metadata)
-
-
Method Detail
-
getType
final SendAttachment.AttachmentType getType()
-
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.
-
-
-
-