InMemoryParticipantRepository

class InMemoryParticipantRepository : ParticipantRepository

Functions

Link copied to clipboard
open suspend override fun addRecruitment(recruitment: Recruitment)

Add a new Recruitment to the repository.

Link copied to clipboard
open suspend override fun getRecruitment(studyId: UUID): Recruitment?

Returns the Recruitment for the specified studyId, or null when no recruitment is found.

Link copied to clipboard
open suspend override fun removeStudy(studyId: UUID): Boolean

Remove all data (only recruitment for now) for the study with studyId.

Link copied to clipboard
open suspend override fun updateRecruitment(recruitment: Recruitment)

Update a Recruitment which is already stored in this repository.