Room Stripped State
@JsonClass(generateAdapter = true )
Content copied to clipboard
These are the same fields as those returned by /publicRooms, with a few additions: room_type, membership and is_encrypted.
Constructors
Link copied to clipboard
fun RoomStrippedState( @Json(name = "aliases" ) aliases: List<String>? = null, @Json(name = "canonical_alias" ) canonicalAlias: String? = null, @Json(name = "name" ) name: String? = null, @Json(name = "num_joined_members" ) numJoinedMembers: Int = 0, @Json(name = "room_id" ) roomId: String, @Json(name = "topic" ) topic: String? = null, @Json(name = "world_readable" ) worldReadable: Boolean = false, @Json(name = "guest_can_join" ) guestCanJoin: Boolean = false, @Json(name = "avatar_url" ) avatarUrl: String? = null, @Json(name = "m.federate" ) isFederated: Boolean = false, @Json(name = "is_encrypted" ) isEncrypted: Boolean?, @Json(name = "room_type" ) roomType: String?, @Json(name = "membership" ) membership: String?)
Content copied to clipboard
Functions
Link copied to clipboard
Return the canonical alias, or the first alias from the list of aliases, or null.