FileInfo

@JsonClass(generateAdapter = true)
data class FileInfo(@Json(name = "mimetype") val mimeType: String?, @Json(name = "size") val size: Long = 0, @Json(name = "thumbnail_info") val thumbnailInfo: ThumbnailInfo? = null, @Json(name = "thumbnail_url") val thumbnailUrl: String? = null, @Json(name = "thumbnail_file") val thumbnailFile: EncryptedFileInfo? = null)

Constructors

Link copied to clipboard
constructor(@Json(name = "mimetype") mimeType: String?, @Json(name = "size") size: Long = 0, @Json(name = "thumbnail_info") thumbnailInfo: ThumbnailInfo? = null, @Json(name = "thumbnail_url") thumbnailUrl: String? = null, @Json(name = "thumbnail_file") thumbnailFile: EncryptedFileInfo? = null)

Functions

Link copied to clipboard

Get the url of the encrypted thumbnail or of the thumbnail.

Properties

Link copied to clipboard

The mimetype of the file e.g. application/msword.

Link copied to clipboard
val size: Long = 0

The size of the file in bytes.

Link copied to clipboard

Information on the encrypted thumbnail file, as specified in End-to-end encryption. Only present if the thumbnail is encrypted.

Link copied to clipboard

Metadata about the image referred to in thumbnail_url.

Link copied to clipboard
val thumbnailUrl: String? = null

The URL to the thumbnail of the file. Only present if the thumbnail is unencrypted.