Package-level declarations

Repositories for Bridge endpoints.

Types

Link copied to clipboard
abstract class AbstractResourceRepo(val database: ResourceDatabaseHelper, backgroundScope: CoroutineScope)
Link copied to clipboard
class ActivityEventsRepo(httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope, val scheduleTimelineRepo: ScheduleTimelineRepo) : AbstractResourceRepo
Link copied to clipboard
class AdherenceRecordRepo(httpClient: HttpClient, val bridgeConfig: BridgeConfig?, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope) : AbstractResourceRepo
Link copied to clipboard
class AppConfigRepo(httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope, val bridgeConfig: BridgeConfig) : AbstractResourceRepo
Link copied to clipboard
Link copied to clipboard
class AssessmentConfigRepo(httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope) : AbstractResourceRepo
Link copied to clipboard
data class AssessmentHistoryRecord(val instanceGuid: String, val assessmentInfo: AssessmentInfo, val startedOn: Instant, val finishedOn: Instant, val clientTimeZone: String? = null, val clientData: JsonElement? = null)
Link copied to clipboard
class AuthenticationRepository(authHttpClient: HttpClient, val bridgeConfig: BridgeConfig, val database: ResourceDatabaseHelper, backgroundScope: CoroutineScope, encryptedSharedSettings: EncryptedSharedSettings) : KoinComponent, AuthenticationProvider
Link copied to clipboard
class ParticipantRepo(httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope, authenticationRepo: AuthenticationRepository) : AbstractResourceRepo
Link copied to clipboard
class ParticipantReportRepo(httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope) : AbstractResourceRepo
Link copied to clipboard
Link copied to clipboard
data class PendingUploadFile(val filePath: String, val uploadSessionId: String?)
Link copied to clipboard
data class Report

Client side version of participant ReportData.

Link copied to clipboard
data class ScheduledAssessmentReference(val instanceGuid: String, val studyId: String, val assessmentInfo: AssessmentInfo, val adherenceRecordList: List<AdherenceRecord>)
Link copied to clipboard
@Serializable
data class ScheduledNotification(val instanceGuid: String, val scheduleOn: LocalDateTime, val repeatInterval: DateTimePeriod?, val repeatUntil: LocalDateTime?, val allowSnooze: Boolean, val message: NotificationMessage?, val isTimeSensitive: Boolean = false)
Link copied to clipboard
data class ScheduledSessionTimelineSlice(val instantInDay: Instant, val timezone: TimeZone, val isLoaded: Boolean, val scheduledSessionWindows: List<ScheduledSessionWindow>, val notifications: List<ScheduledNotification>)

A parsed instance of the schedule calculated at a given instant in time and split into which schedules are available now, up next, or require scheduling a notification.

Link copied to clipboard
data class ScheduledSessionWindow(val scheduledSession: ScheduledSession, val eventTimestamp: Instant, val startDateTime: LocalDateTime, val endDateTime: LocalDateTime, val assessments: List<ScheduledAssessmentReference>, val sessionInfo: SessionInfo, val notifications: List<ScheduledNotification>?)
Link copied to clipboard
class ScheduleTimelineRepo(adherenceRecordRepo: AdherenceRecordRepo, assessmentConfigRepo: AssessmentConfigRepo, httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope, var scheduleMutator: ParticipantScheduleMutator? = null) : AbstractResourceRepo
Link copied to clipboard
data class StudyBurst(val sessions: List<ScheduledSessionWindow> = listOf())
Link copied to clipboard
data class StudyBurstSchedule(val timezone: TimeZone, val studyBurstList: List<StudyBurst> = listOf())

A parsed instance of the schedule calculated from the user's joined instant in time onward, and organized in by study burst event ID

Link copied to clipboard
class StudyRepo(bridgeConfig: BridgeConfig, httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope) : AbstractResourceRepo