GroupServiceImpl

Functions

Link copied to clipboard
open suspend override fun addUserToGroup(groupCode: String, userId: String, userRole: String): Group

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

open override 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.

Link copied to clipboard
open suspend override fun createGroup(groupName: String, initialUserRole: String): Group

Creates a new group asynchronously and associate with current user id.

open override fun createGroup(groupName: String, initialUserRole: String, completionCallback: CompletionCallback<Group>)

Creates a new group and associate with current user id asynchronously with a completion callback.

Link copied to clipboard
open suspend override fun deleteGroup(groupId: String): Group

Deletes an existing group associated with current user id asynchronously.

open override fun deleteGroup(groupId: String, completionCallback: CompletionCallback<Group>)

Deletes an existing group associated with current user id asynchronously with a completion callback.

Link copied to clipboard
open suspend override fun deleteUserInGroup(groupId: String, userId: String): Group

Deletes a user from a group associated with current user id asynchronously.

open override fun deleteUserInGroup(groupId: String, userId: String, completionCallback: CompletionCallback<Group>)

Deletes a user from a group associated with current user id asynchronously with a completion callback.

Link copied to clipboard
open suspend override fun getGroup(groupId: String): Group

Retrieves a specific group associated with the current user ID asynchronously.

open override fun getGroup(groupId: String, completionCallback: CompletionCallback<Group>)

Retrieves a specific group associated with current user id asynchronously with a completion callback.

Link copied to clipboard
open suspend override fun getGroups(): List<Group>

Retrieves a list of groups associated with the current user ID asynchronously.

open override fun getGroups(completionCallback: CompletionCallback<List<Group>>)

Retrieves a list of groups associated with current user id asynchronously with a completion callback.

Link copied to clipboard
open suspend override fun joinGroup(groupCode: String, userRole: String): Group

Joins a group asynchronously.

open override fun joinGroup(groupCode: String, userRole: String, completionCallback: CompletionCallback<Group>)

Joins current user to a group asynchronously with a completion callback.

Link copied to clipboard
open suspend override fun updateGroup(groupId: String, name: String): Group

Updates an existing group associated with current user id asynchronously.

open override fun updateGroup(groupId: String, name: String, completionCallback: CompletionCallback<Group>)

Updates an existing group associated with current user id asynchronously with a completion callback.