From 2db431463db0cbb0372199e721e2431bb8e7c3bf Mon Sep 17 00:00:00 2001 From: lbarraga Date: Sun, 7 May 2023 14:02:29 +0200 Subject: [PATCH] sessionreport needs if of subjectId and taskId --- .../data/local/models/timer_functional/FunctionalTimer.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/be/ugent/sel/studeez/data/local/models/timer_functional/FunctionalTimer.kt b/app/src/main/java/be/ugent/sel/studeez/data/local/models/timer_functional/FunctionalTimer.kt index cf5005f..656f52f 100644 --- a/app/src/main/java/be/ugent/sel/studeez/data/local/models/timer_functional/FunctionalTimer.kt +++ b/app/src/main/java/be/ugent/sel/studeez/data/local/models/timer_functional/FunctionalTimer.kt @@ -18,11 +18,12 @@ abstract class FunctionalTimer(initialValue: Int) { abstract fun hasCurrentCountdownEnded(): Boolean - fun getSessionReport(taskId: String): SessionReport { + fun getSessionReport(subjectId: String, taskId: String): SessionReport { return SessionReport( studyTime = totalStudyTime, endTime = Timestamp.now(), - taskId = taskId + taskId = taskId, + subjectId = subjectId ) }