mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Cleanup and add URL
This commit is contained in:
parent
0dbd856ac5
commit
715bd29c75
2 changed files with 10 additions and 9 deletions
|
@ -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,
|
||||||
|
|
|
@ -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?
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue