GroupController

interface GroupController

An interface defining access to groups.

Important: This interface is not stable for inheritance, as new methods may be added, but is stable for use.

Since

6.1.0

Properties

Link copied to clipboard

A MimiObservable exposing the current MimiGroup.

Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend fun activateGroup(mimiGroup: MimiGroup)

Activates a MimiGroup , deactivating and replacing any existing activated group

Link copied to clipboard
abstract suspend fun activateMemberInGroup(group: MimiGroup, member: MimiGroupMember): MimiGroup
Link copied to clipboard
abstract suspend fun addMemberToGroup(group: MimiGroup, name: String, yearOfBirth: Int): MimiGroupMember
Link copied to clipboard
abstract suspend fun createGroup(): MimiGroup

Creates a new group in the backend and updates the GroupController.mimiGroups

Link copied to clipboard
abstract suspend fun deactivateGroup()

Deactivates the currently active MimiGroup If no group is active nothing will change.

Link copied to clipboard
abstract suspend fun deactivateMemberInGroup(group: MimiGroup, member: MimiGroupMember): MimiGroup
Link copied to clipboard
abstract suspend fun deleteGroup(group: MimiGroup)

Deletes the mimiGroup from the backend, deactivates it if it was active and updates the GroupController.mimiGroups

Link copied to clipboard
abstract suspend fun deleteMemberFromGroup(group: MimiGroup, member: MimiGroupMember)