Class FileInfo
- java.lang.Object
-
- io.github.ma1uta.matrix.event.nested.FileInfo
-
-
Field Summary
Fields Modifier and Type Field Description private StringmimetypeThe mimetype of the image, e.g. image/jpeg.private LongsizeSize of the image in bytes.private EncryptedFilethumbnailFileInformation on the encrypted thumbnail file, as specified in End-to-end encryption.private ThumbnailInfothumbnailInfoMetadata about the image referred to in thumbnail_url.private StringthumbnailUrlThe URL to a thumbnail of the image.
-
Constructor Summary
Constructors Constructor Description FileInfo()
-
Method Summary
Modifier and Type Method Description StringgetMimetype()LonggetSize()EncryptedFilegetThumbnailFile()ThumbnailInfogetThumbnailInfo()StringgetThumbnailUrl()voidsetMimetype(String mimetype)voidsetSize(Long size)voidsetThumbnailFile(EncryptedFile thumbnailFile)voidsetThumbnailInfo(ThumbnailInfo thumbnailInfo)voidsetThumbnailUrl(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)
-
-