Image

@Serializable
data class Image(val attachmentId: String, val url: String, val previewUrl: String? = null, val remoteUrl: String? = null, val previewRemoteUrl: String? = null, val textUrl: String? = null, val description: String? = null, val blurHash: String? = null, val meta: Attachment.Image.Meta = Meta()) : Attachment

Constructors

Link copied to clipboard
constructor(attachmentId: String, url: String, previewUrl: String? = null, remoteUrl: String? = null, previewRemoteUrl: String? = null, textUrl: String? = null, description: String? = null, blurHash: String? = null, meta: Attachment.Image.Meta = Meta())

Types

Link copied to clipboard
@Serializable
data class Meta(val width: Long? = null, val height: Long? = null, val aspect: Double? = null, val focalPoint: FocalPoint? = null, val original: Attachment.Image.Meta? = null, val small: Attachment.Image.Meta? = null)

Properties

Link copied to clipboard
open override val attachmentId: String
Link copied to clipboard
open override val blurHash: String? = null

A hash computed by the BlurHash algorithm, for generating colorful preview thumbnails when media has not been downloaded yet.

Link copied to clipboard
open override val description: String? = null

Alternate text that describes what is in the media attachment.

Link copied to clipboard
Link copied to clipboard
open override val previewRemoteUrl: String? = null

URL of a scaled-down preview of the attachment on the remote website.

Link copied to clipboard
open override val previewUrl: String? = null

URL of a scaled-down preview of the attachment.

Link copied to clipboard
open override val remoteUrl: String? = null

URL of the full-size original attachment on the remote website.

Link copied to clipboard
open override val textUrl: String? = null

A shorter URL for the attachment.

Link copied to clipboard
open override val url: String

URL of the original full-size attachment.