RoomCanonicalAliasContent

@JsonClass(generateAdapter = true)
data class RoomCanonicalAliasContent(@Json(name = "alias") val canonicalAlias: String? = null, @Json(name = "alt_aliases") val alternativeAliases: List<String>? = null)

Class representing the EventType.STATE_ROOM_CANONICAL_ALIAS state event content.

Constructors

Link copied to clipboard
fun RoomCanonicalAliasContent(@Json(name = "alias") canonicalAlias: String? = null, @Json(name = "alt_aliases") alternativeAliases: List<String>? = null)

Properties

Link copied to clipboard
val alternativeAliases: List<String>? = null

Alternative aliases the room advertises. This list can have aliases despite the alias field being null, empty, or otherwise not present.

Link copied to clipboard
val canonicalAlias: String? = null

The canonical alias for the room. If not present, null, or empty the room should be considered to have no canonical alias.