Add addChildToSpace method to SpaceService
This commit is contained in:
parent
d2bd1bb784
commit
4d73f9fb43
3 changed files with 19 additions and 0 deletions
|
|
@ -23,6 +23,14 @@ interface SpaceService {
|
|||
|
||||
fun getLeaveSpaceHandle(spaceId: RoomId): LeaveSpaceHandle
|
||||
|
||||
/**
|
||||
* Add a child room to a space.
|
||||
* @param spaceId The space ID to which the child will be added.
|
||||
* @param childId The room ID of the child to add.
|
||||
* @return A result indicating success or failure.
|
||||
*/
|
||||
suspend fun addChildToSpace(spaceId: RoomId, childId: RoomId): Result<Unit>
|
||||
|
||||
/**
|
||||
* Remove a child room from a space.
|
||||
* @param spaceId The space ID from which to remove the child.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue