Package org.matrix.android.sdk.api.session.space.model

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class SpaceChildContent(    @Json(name = "via") val via: List<String>? = null,     @Json(name = "order") val order: String? = null,     @Json(name = "suggested") val suggested: Boolean? = false)

Example:

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class SpaceChildSummaryEvent(    @Json(name = "type") val type: String? = null,     @Json(name = "state_key") val stateKey: String? = null,     @Json(name = "content") val content: Content? = null,     @Json(name = "sender") val senderId: String? = null,     @Json(name = "origin_server_ts") val originServerTs: Long? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class SpaceOrderContent(val order: String? = null)

Example:

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class SpaceParentContent(@Json(name = "via") val via: List<String>? = null, @Json(name = "canonical") val canonical: Boolean? = false)

Rooms can claim parents via the m.space.parent state event. { "type": "m.space.parent", "state_key": "!space:example.com", "content": { "via": "example.com", "canonical": true, } }

Link copied to clipboard
class TopLevelSpaceComparator(val orders: Map<String, String?>) : Comparator<RoomSummary>