fun getGroups(userIsParticipant: Boolean, onCompletion: (Either<List<Group>, SippoResourceError>) -> Unit): Unit
Gets the user's groups.
userIsParticipant
- If true, only the groups where the local user is participating will be retrieved.
If it is false, all groups will be returned.
onCompletion
- Callback that will be invoked when the request is completed.
It will receive the group list in case of success or a SippoResourceError otherwise.