addMemberToGroup

abstract suspend fun addMemberToGroup(group: MimiGroup, name: String, yearOfBirth: Int): MimiGroupMember

Adds the MimiGroupMember to a MimiGroup, updates GroupController.mimiGroups and if necessary GroupController.activeGroup

Return

the MimiGroupMember added to the group

Parameters

group

the MimiGroup the member will be added to

name

the name of the MimiGroupMember to be added

yearOfBirth

the year of birth of the MimiGroupMember to be added

Throws

if group with given id does not exist