Package-level declarations

Types

Link copied to clipboard
sealed interface ClientEvent<C : EventContent> : Event<C>

A client event with a specific type given by the generic parameter C.

Link copied to clipboard
@Serializable
data class DecryptedMegolmEvent<C : MessageEventContent>(val content: C, val roomId: RoomId) : Event<C>
Link copied to clipboard
@Serializable
data class DecryptedOlmEvent<C : EventContent>(val content: C, val sender: UserId, val senderKeys: Keys, val senderDeviceKeys: SignedDeviceKeys? = null, val recipient: UserId, val recipientKeys: Keys) : Event<C>
Link copied to clipboard
@Serializable
data class EphemeralDataUnit<C : EphemeralDataUnitContent>(val content: C) : Event<C>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Event<C : EventContent>
Link copied to clipboard
sealed interface EventContent
Link copied to clipboard
data class EventType(val kClass: KClass<out EventContent>?, val name: String)
Link copied to clipboard

This is based on MSC1767 and maybe included into EventContent in the future.

Link copied to clipboard
@Serializable
data class InitialStateEvent<C : StateEventContent>(val content: C, val stateKey: String) : Event<C>
Link copied to clipboard

Content of a matrix message event

Link copied to clipboard
sealed interface PersistentDataUnit<C : EventContent> : Event<C>
Link copied to clipboard
sealed interface RoomEventContent : EventContent

Content of a matrix room event

Link copied to clipboard

Content of a matrix state event

Link copied to clipboard
Link copied to clipboard
data class UnknownEphemeralDataUnitContent(val raw: JsonObject, val eventType: String) : EphemeralDataUnitContent
Link copied to clipboard
sealed interface UnsignedRoomEventData

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard