MessageAudioContent

@JsonClass(generateAdapter = true)
data class MessageAudioContent(@Json(name = "msgtype") val msgType: String, @Json(name = "body") val body: String, @Json(name = "info") val audioInfo: AudioInfo? = 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, @Json(name = "org.matrix.msc1767.audio") val audioWaveformInfo: AudioWaveformInfo? = null, @Json(name = "org.matrix.msc3245.voice") val voiceMessageIndicator: JsonDict? = null) : MessageWithAttachmentContent

Constructors

Link copied to clipboard
constructor(@Json(name = "msgtype") msgType: String, @Json(name = "body") body: String, @Json(name = "info") audioInfo: AudioInfo? = 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, @Json(name = "org.matrix.msc1767.audio") audioWaveformInfo: AudioWaveformInfo? = null, @Json(name = "org.matrix.msc3245.voice") voiceMessageIndicator: JsonDict? = null)

Functions

Link copied to clipboard

Get the url of the encrypted file or of the file.

Link copied to clipboard

Get the latest displayable content. Will take care to hide spoiler text

Properties

Link copied to clipboard
val audioInfo: AudioInfo? = null

Metadata for the audio clip referred to in url.

Link copied to clipboard

Encapsulates waveform and duration of the audio.

Link copied to clipboard
open override val body: String

Required. A description of the audio e.g. 'Bee Gees - Stayin' Alive', or some kind of content description for accessibility e.g. 'audio 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 mimeType: String?
Link copied to clipboard
open override val msgType: String

Required. Must be 'm.audio'.

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 not encrypted. The URL (typically MXC URI) to the audio clip.

Link copied to clipboard

Indicates that is a voice message.