Package org.matrix.android.sdk.api.session.room.model.roomdirectory

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PublicRoom(    @Json(name = "aliases") val aliases: List<String>? = null,     @Json(name = "canonical_alias") val canonicalAlias: String? = null,     @Json(name = "name") val name: String? = null,     @Json(name = "num_joined_members") val numJoinedMembers: Int = 0,     @Json(name = "room_id") val roomId: String,     @Json(name = "topic") val topic: String? = null,     @Json(name = "world_readable") val worldReadable: Boolean = false,     @Json(name = "guest_can_join") val guestCanJoin: Boolean = false,     @Json(name = "avatar_url") val avatarUrl: String? = null,     @Json(name = "m.federate") val isFederated: Boolean = false)

Class representing the objects returned by /publicRooms call.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PublicRoomsFilter(@Json(name = "generic_search_term") val searchTerm: String? = null)

Class to define a filter to retrieve public rooms.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PublicRoomsParams(    @Json(name = "limit") val limit: Int? = null,     @Json(name = "since") val since: String? = null,     @Json(name = "filter") val filter: PublicRoomsFilter? = null,     @Json(name = "include_all_networks") val includeAllNetworks: Boolean = false,     @Json(name = "third_party_instance_id") val thirdPartyInstanceId: String? = null)

Class to pass parameters to get the public rooms list.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PublicRoomsResponse(    @Json(name = "next_batch") val nextBatch: String? = null,     @Json(name = "prev_batch") val prevBatch: String? = null,     @Json(name = "chunk") val chunk: List<PublicRoom>? = null,     @Json(name = "total_room_count_estimate") val totalRoomCountEstimate: Int? = null)

Class representing the public rooms request response.