Package com.aliucord.wrappers.messages
Class AttachmentWrapper
-
- All Implemented Interfaces:
public final class AttachmentWrapperWraps the obfuscated MessageAttachment class to provide nice method names and require only one central update if method names change after an update
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAttachmentWrapper.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringfilenameprivate final Integerheightprivate final StringproxyUrlprivate final Longsizeprivate final MessageAttachmentTypetypeprivate final Stringurlprivate final Integerwidthpublic final static AttachmentWrapper.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description AttachmentWrapper(MessageAttachment attachment)
-
Method Summary
Modifier and Type Method Description final StringgetFilename()final IntegergetHeight()final StringgetProxyUrl()final LonggetSize()final MessageAttachmentTypegetType()final StringgetUrl()final IntegergetWidth()final MessageAttachmentraw()Returns the raw (obfuscated) MessageAttachment Object associated with this wrapper -
-
Method Detail
-
getFilename
final String getFilename()
-
getProxyUrl
final String getProxyUrl()
-
getType
final MessageAttachmentType getType()
-
raw
final MessageAttachment raw()
Returns the raw (obfuscated) MessageAttachment Object associated with this wrapper
-
-
-
-