ParticipantReportRepo

class ParticipantReportRepo(httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope) : AbstractResourceRepo

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun createUpdateReport(report: Report, studyId: String, identifier: String)

Update the local cache with the specified Report and trigger a background call to save to Bridge server.

Link copied to clipboard
fun createUpdateReports(reports: List<Report>, studyId: String, identifier: String)
Link copied to clipboard
fun getCachedReports(studyId: String, identifier: String): List<Report>

Get all cached reports associated with the given identifier

Link copied to clipboard
suspend fun loadRemoteReports(studyId: String, identifier: String, startTime: Instant, endTime: Instant): Boolean

Download and cache locally all Reports for the given study, identifier and within the time range.