Package org.javacord.core.entity.message
Class MessageAttachmentImpl
- java.lang.Object
-
- org.javacord.core.entity.AttachmentImpl
-
- org.javacord.core.entity.message.MessageAttachmentImpl
-
- All Implemented Interfaces:
Attachment
,DiscordEntity
,MessageAttachment
public class MessageAttachmentImpl extends AttachmentImpl implements MessageAttachment
The implementation ofMessageAttachment
.
-
-
Constructor Summary
Constructors Constructor Description MessageAttachmentImpl(Message message, com.fasterxml.jackson.databind.JsonNode data)
Creates a new message attachment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
getMessage()
-
Methods inherited from class org.javacord.core.entity.AttachmentImpl
asByteArray, asImage, asInputStream, equals, getApi, getDescription, getFileName, getHeight, getId, getProxyUrl, getSize, getUrl, getWidth, hashCode, isEphemeral, toJsonNode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javacord.api.entity.Attachment
asByteArray, asImage, asInputStream, getDescription, getFileName, getHeight, getProxyUrl, getSize, getUrl, getWidth, isEphemeral, isImage, isSpoiler
-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getId, getIdAsString
-
-
-
-
Constructor Detail
-
MessageAttachmentImpl
public MessageAttachmentImpl(Message message, com.fasterxml.jackson.databind.JsonNode data)
Creates a new message attachment.- Parameters:
message
- The message of the attachment.data
- The data of the attachment.
-
-
Method Detail
-
getMessage
public Message getMessage()
- Specified by:
getMessage
in interfaceMessageAttachment
-
-