QuestionnaireRepository

class QuestionnaireRepository @Inject constructor(ioDispatcher: CoroutineDispatcher, questionnaireDocumentMapper: QuestionnaireDocumentMapper, observationCollectionProvider: ObservationCollectionProvider, firestore: FirebaseFirestore)

Constructors

Link copied to clipboard
@Inject
constructor(ioDispatcher: CoroutineDispatcher, questionnaireDocumentMapper: QuestionnaireDocumentMapper, observationCollectionProvider: ObservationCollectionProvider, firestore: FirebaseFirestore)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun getQuestionnaire(id: String): Result<Questionnaire>
Link copied to clipboard
suspend fun save(questionnaireResponse: QuestionnaireResponse): Result<Unit>