ActivityEventsRepo

class ActivityEventsRepo(httpClient: HttpClient, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope, val scheduleTimelineRepo: ScheduleTimelineRepo) : AbstractResourceRepo

Constructors

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

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun createActivityEvent(studyId: String, eventId: String, timeStamp: Instant): Boolean

Create a new activity event for the caller in this study. The creation or update of an event that triggers a study burst will update the study burst events as well, even to the point of recreating study burst events that have been deleted (depending on the update type of the bursts).

Link copied to clipboard

Get the activity events for this study (for the caller).