Package com.aliucord.wrappers.messages
Class AttachmentWrapper
-
- All Implemented Interfaces:
public final class AttachmentWrapper
Wraps 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 class
AttachmentWrapper.Companion
-
Field Summary
Fields Modifier and Type Field Description private final String
filename
private final Integer
height
private final String
proxyUrl
private final Long
size
private final MessageAttachmentType
type
private final String
url
private final Integer
width
public final static AttachmentWrapper.Companion
Companion
-
Constructor Summary
Constructors Constructor Description AttachmentWrapper(MessageAttachment attachment)
-
Method Summary
Modifier and Type Method Description final String
getFilename()
final Integer
getHeight()
final String
getProxyUrl()
final Long
getSize()
final MessageAttachmentType
getType()
final String
getUrl()
final Integer
getWidth()
final MessageAttachment
raw()
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
-
-
-
-