-
- All Implemented Interfaces:
-
ai.tock.bot.engine.message.Message
public final class Attachment implements Message
A simple attachment file.
-
-
Constructor Summary
Constructors Constructor Description Attachment(String url, SendAttachment.AttachmentType type, Long delay)
-
Method Summary
Modifier and Type Method Description ActiontoAction(PlayerId playerId, String applicationId, PlayerId recipientId)StringtoPrettyString()Returns a human readable string representation of the message. BooleanisSimpleMessage()final Stringcomponent1()final SendAttachment.AttachmentTypecomponent2()final Longcomponent3()final Attachmentcopy(String url, SendAttachment.AttachmentType type, Long delay)EventTypegetEventType()final StringgetUrl()final SendAttachment.AttachmentTypegetType()LonggetDelay()-
Methods inherited from class ai.tock.bot.engine.message.Attachment
obfuscate, toAction -
Methods inherited from class ai.tock.bot.engine.message.Message
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Attachment
Attachment(String url, SendAttachment.AttachmentType type, Long delay)
-
-
Method Detail
-
toPrettyString
String toPrettyString()
Returns a human readable string representation of the message.
-
isSimpleMessage
Boolean isSimpleMessage()
-
component1
final String component1()
-
component2
final SendAttachment.AttachmentType component2()
-
component3
final Long component3()
-
copy
final Attachment copy(String url, SendAttachment.AttachmentType type, Long delay)
-
getEventType
EventType getEventType()
-
getType
final SendAttachment.AttachmentType getType()
-
-
-
-