MessageImageContent

@JsonClass(generateAdapter = true)
data class MessageImageContent(    @Json(name = "msgtype") val msgType: String,     @Json(name = "body") val body: String,     @Json(name = "info") val info: ImageInfo? = null,     @Json(name = "url") val url: String? = null,     @Json(name = "m.relates_to") val relatesTo: RelationDefaultContent? = null,     @Json(name = "m.new_content") val newContent: Content? = null,     @Json(name = "file") val encryptedFileInfo: EncryptedFileInfo? = null) : MessageImageInfoContent

Constructors

Link copied to clipboard
fun MessageImageContent(    @Json(name = "msgtype") msgType: String,     @Json(name = "body") body: String,     @Json(name = "info") info: ImageInfo? = null,     @Json(name = "url") url: String? = null,     @Json(name = "m.relates_to") relatesTo: RelationDefaultContent? = null,     @Json(name = "m.new_content") newContent: Content? = null,     @Json(name = "file") encryptedFileInfo: EncryptedFileInfo? = null)

Properties

Link copied to clipboard
open override val body: String

Required. A textual representation of the image. This could be the alt text of the image, the filename of the image, or some kind of content description for accessibility e.g. 'image attachment'.

Link copied to clipboard
open override val encryptedFileInfo: EncryptedFileInfo? = null

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

Link copied to clipboard
open override val info: ImageInfo? = null

Metadata about the image referred to in url.

Link copied to clipboard
open override val mimeType: String?
Link copied to clipboard
open override val msgType: String

Required. Must be 'm.image'.

Link copied to clipboard
open override val newContent: Content? = null
Link copied to clipboard
open override val relatesTo: RelationDefaultContent? = null
Link copied to clipboard
open override val url: String? = null

Required if the file is unencrypted. The URL (typically MXC URI) to the image.