Class FileInfo
- java.lang.Object
-
- io.github.ma1uta.matrix.event.nested.FileInfo
-
-
Field Summary
Fields Modifier and Type Field Description private String
mimetype
The mimetype of the image, e.g. image/jpeg.private Long
size
Size of the image in bytes.private EncryptedFile
thumbnailFile
Information on the encrypted thumbnail file, as specified in End-to-end encryption.private ThumbnailInfo
thumbnailInfo
Metadata about the image referred to in thumbnail_url.private String
thumbnailUrl
The URL to a thumbnail of the image.
-
Constructor Summary
Constructors Constructor Description FileInfo()
-
Method Summary
Modifier and Type Method Description String
getMimetype()
Long
getSize()
EncryptedFile
getThumbnailFile()
ThumbnailInfo
getThumbnailInfo()
String
getThumbnailUrl()
void
setMimetype(String mimetype)
void
setSize(Long size)
void
setThumbnailFile(EncryptedFile thumbnailFile)
void
setThumbnailInfo(ThumbnailInfo thumbnailInfo)
void
setThumbnailUrl(String thumbnailUrl)
-
-
-
Field Detail
-
mimetype
private String mimetype
The mimetype of the image, e.g. image/jpeg.
-
size
private Long size
Size of the image in bytes.
-
thumbnailUrl
private String thumbnailUrl
The URL to a thumbnail of the image.
-
thumbnailFile
private EncryptedFile thumbnailFile
Information on the encrypted thumbnail file, as specified in End-to-end encryption. Only present if the thumbnail is encrypted.
-
thumbnailInfo
private ThumbnailInfo thumbnailInfo
Metadata about the image referred to in thumbnail_url.
-
-
Method Detail
-
getMimetype
public String getMimetype()
-
setMimetype
public void setMimetype(String mimetype)
-
getSize
public Long getSize()
-
setSize
public void setSize(Long size)
-
getThumbnailUrl
public String getThumbnailUrl()
-
setThumbnailUrl
public void setThumbnailUrl(String thumbnailUrl)
-
getThumbnailFile
public EncryptedFile getThumbnailFile()
-
setThumbnailFile
public void setThumbnailFile(EncryptedFile thumbnailFile)
-
getThumbnailInfo
public ThumbnailInfo getThumbnailInfo()
-
setThumbnailInfo
public void setThumbnailInfo(ThumbnailInfo thumbnailInfo)
-
-