addUserToGroup

abstract suspend fun addUserToGroup(groupCode: String, userId: String, userRole: String): Group

Adds a user to a group associated with current user id asynchronously.

Return

The updated group.

Parameters

groupCode

The group code for the group.

userId

The ID of the user to add.

userRole

The role of the user.


abstract fun addUserToGroup(groupCode: String, userId: String, userRole: String, completionCallback: CompletionCallback<Group>)

Adds a user to a group associated with current user id asynchronously with a completion callback.

Parameters

groupCode

The group code for the group.

userId

The ID of the user to add.

userRole

The role of the user.

completionCallback

The callback function to be invoked when the group is updated.