Types

Link copied to clipboard
@Serializable
data class Answer(val version: String, val callId: String, val partyId: String? = null, val answer: CallEventContent.Answer.Answer, val sdpStreamMetadata: Map<String, StreamMetadata>? = null) : CallEventContent

Matrix call answer content

Link copied to clipboard
@Serializable
data class Candidates(val version: String, val callId: String, val partyId: String? = null, val candidates: List<CallEventContent.Candidates.Candidate>) : CallEventContent

Matrix call candidates content

Link copied to clipboard
@Serializable
data class Hangup(val version: String, val callId: String, val partyId: String? = null, val reason: CallEventContent.Hangup.Reason? = null) : CallEventContent

Matrix call hangup content

Link copied to clipboard
@Serializable
data class Invite(val version: String, val callId: String, val partyId: String? = null, val invitee: String? = null, val lifetime: Long, val offer: CallEventContent.Invite.Offer, val sdpStreamMetadata: Map<String, StreamMetadata>?) : CallEventContent

Matrix call invite content

Link copied to clipboard
@Serializable
data class Negotiate(val version: String = "1", val callId: String, val partyId: String, val description: CallEventContent.Negotiate.Description, val lifetime: Long, val sdpStreamMetadata: Map<String, StreamMetadata>? = null) : CallEventContent

Matrix call negotiate content

Link copied to clipboard
@Serializable
data class Reject(val version: String = "1", val callId: String, val partyId: String) : CallEventContent

Matrix call reject content

Link copied to clipboard
@Serializable
data class SdpStreamMetadataChanged(val version: String = "1", val callId: String, val partyId: String, val sdpStreamMetadata: Map<String, StreamMetadata>) : CallEventContent

Matrix call SDP stream metadata changed event content

Link copied to clipboard
@Serializable
data class SelectAnswer(val version: String = "1", val callId: String, val partyId: String, val selectedPartyId: String) : CallEventContent

Matrix call select answer content

Link copied to clipboard
object VersionSerializer : KSerializer<String>

Properties

Link copied to clipboard
abstract val callId: String
Link copied to clipboard
abstract val externalUrl: String?
Link copied to clipboard
abstract val mentions: Mentions?
Link copied to clipboard
abstract val partyId: String?
Link copied to clipboard
abstract val relatesTo: RelatesTo?
Link copied to clipboard
abstract val version: String

Functions

Link copied to clipboard
abstract fun copyWith(relatesTo: RelatesTo?): MessageEventContent

This should return the same instance, but with the relatesTo property set to the given value. It is used for event content replacing.