Cleanup and add URL

This commit is contained in:
Benoit Marty 2021-03-31 09:21:43 +02:00 committed by Valere
parent 0dbd856ac5
commit 715bd29c75
2 changed files with 10 additions and 9 deletions

View file

@ -34,7 +34,9 @@ internal interface SpaceApi {
* "batch": "opaque_string" // A token to use if this is a subsequent HTTP hit, default: "". * "batch": "opaque_string" // A token to use if this is a subsequent HTTP hit, default: "".
* } * }
* *
* MSC 2946 https://github.com/matrix-org/matrix-doc/blob/kegan/spaces-summary/proposals/2946-spaces-summary.md * 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") @POST(NetworkConstants.URI_API_PREFIX_PATH_UNSTABLE + "org.matrix.msc2946/rooms/{roomId}/spaces")
fun getSpaces(@Path("roomId") spaceId: String, fun getSpaces(@Path("roomId") spaceId: String,

View file

@ -31,5 +31,4 @@ internal data class SpaceSummaryParams(
@Json(name = "suggested_only") val suggestedOnly: Boolean?, @Json(name = "suggested_only") val suggestedOnly: Boolean?,
/** whether we should only return children with the "suggested" flag set. */ /** whether we should only return children with the "suggested" flag set. */
@Json(name = "auto_join_only") val autoJoinedOnly: Boolean? @Json(name = "auto_join_only") val autoJoinedOnly: Boolean?
) )