mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +03:00
cleaning
This commit is contained in:
parent
0bcd363677
commit
97114b4f48
2 changed files with 1 additions and 32 deletions
|
@ -24,25 +24,12 @@ import javax.inject.Inject
|
|||
internal interface ResolveSpaceInfoTask : Task<ResolveSpaceInfoTask.Params, SpacesResponse> {
|
||||
data class Params(
|
||||
val spaceId: String,
|
||||
// val maxRoomPerSpace: Int?,
|
||||
val limit: Int?,
|
||||
val maxDepth: Int?,
|
||||
val from: String?,
|
||||
val suggestedOnly: Boolean?
|
||||
// val autoJoinOnly: Boolean?
|
||||
) {
|
||||
// companion object {
|
||||
// fun withId(spaceId: String, suggestedOnly: Boolean?) =
|
||||
// Params(
|
||||
// spaceId = spaceId,
|
||||
// // maxRoomPerSpace = 10,
|
||||
// limit = 20,
|
||||
// from = null,
|
||||
// suggestedOnly = suggestedOnly
|
||||
// // autoJoinOnly = autoJoinOnly
|
||||
// )
|
||||
// }
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
internal class DefaultResolveSpaceInfoTask @Inject constructor(
|
||||
|
|
|
@ -23,24 +23,6 @@ import retrofit2.http.Query
|
|||
|
||||
internal interface SpaceApi {
|
||||
|
||||
/**
|
||||
*
|
||||
* POST /_matrix/client/r0/rooms/{roomID}/spaces
|
||||
* {
|
||||
* "max_rooms_per_space": 5, // The maximum number of rooms/subspaces to return for a given space, if negative unbounded. default: -1.
|
||||
* "auto_join_only": true, // If true, only return m.space.child events with auto_join:true, default: false, which returns all events.
|
||||
* "limit": 100, // The maximum number of rooms/subspaces to return, server can override this, default: 100.
|
||||
* "batch": "opaque_string" // A token to use if this is a subsequent HTTP hit, default: "".
|
||||
* }
|
||||
*
|
||||
* Ref:
|
||||
* - MSC 2946 https://github.com/matrix-org/matrix-doc/blob/kegan/spaces-summary/proposals/2946-spaces-summary.md
|
||||
* - https://hackmd.io/fNYh4tjUT5mQfR1uuRzWDA
|
||||
*/
|
||||
// @POST(NetworkConstants.URI_API_PREFIX_PATH_UNSTABLE + "org.matrix.msc2946/rooms/{roomId}/spaces")
|
||||
// suspend fun getSpaces(@Path("roomId") spaceId: String,
|
||||
// @Body params: SpaceSummaryParams): SpacesResponse
|
||||
|
||||
/**
|
||||
* @param limit: Optional: a client-defined limit to the maximum number of rooms to return per page. Must be a non-negative integer.
|
||||
* @param max_depth: Optional: The maximum depth in the tree (from the root room) to return.
|
||||
|
|
Loading…
Reference in a new issue