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
fun FileInfo(    @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)

Properties

Link copied to clipboard
val mimeType: String?

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
val thumbnailFile: EncryptedFileInfo? = null

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

Link copied to clipboard
val thumbnailInfo: ThumbnailInfo? = null

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.

Extensions

Link copied to clipboard
fun FileInfo.getThumbnailUrl(): String?

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