File tree Expand file tree Collapse file tree 9 files changed +43
-24
lines changed
app/src/main/java/ai/elimu/analytics/entity Expand file tree Collapse file tree 9 files changed +43
-24
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,17 @@ abstract class AssessmentEvent : BaseEntity() {
16
16
17
17
lateinit var time: Calendar
18
18
19
+ /* *
20
+ * A value in the range [0.0, 1.0].
21
+ */
22
+ var masteryScore: Float = - 1f
23
+
24
+ /* *
25
+ * The number of milliseconds passed between the student opening the assessment task
26
+ * and submitting a response. E.g. `15000`.
27
+ */
28
+ var timeSpentMs: Long = 0L
29
+
19
30
/* *
20
31
* Any additional data should be stored in the format of a JSON object.
21
32
*
Original file line number Diff line number Diff line change @@ -18,20 +18,8 @@ class LetterSoundAssessmentEvent : AssessmentEvent() {
18
18
lateinit var letterSoundSounds: String
19
19
20
20
/* *
21
- * This field might not be included, e.g. if the assessment task was done in a
22
- * 3rd-party app that did not load the content from the elimu.ai Content Provider.
23
- * In this case, the `letterSoundId` will be `null`.
21
+ * This field might not be included, e.g. if the event occurred in a 3rd-party app that did not
22
+ * load the content from the elimu.ai Content Provider. In that case, this field will be {@code null}.
24
23
*/
25
24
var letterSoundId: Long? = null
26
-
27
- /* *
28
- * A value in the range [0.0, 1.0].
29
- */
30
- var masteryScore: Float = 0f
31
-
32
- /* *
33
- * The number of milliseconds passed between the student opening the assessment task
34
- * and submitting a response. E.g. `15000`.
35
- */
36
- var timeSpentMs: Long = 0L
37
25
}
Original file line number Diff line number Diff line change @@ -7,9 +7,13 @@ import androidx.room.Entity
7
7
*/
8
8
@Entity
9
9
class LetterSoundLearningEvent : LearningEvent () {
10
- var letterSoundId: Long? = null
11
-
12
10
lateinit var letterSoundLetterTexts: Array <String >
13
11
14
12
lateinit var letterSoundSoundValuesIpa: Array <String >
13
+
14
+ /* *
15
+ * This field might not be included, e.g. if the event occurred in a 3rd-party app that did not
16
+ * load the content from the elimu.ai Content Provider. In that case, this field will be {@code null}.
17
+ */
18
+ var letterSoundId: Long? = null
15
19
}
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ import androidx.room.Entity
7
7
*/
8
8
@Entity
9
9
class NumberAssessmentEvent : AssessmentEvent () {
10
- var masteryScore: Float = - 1f
11
-
12
- var timeSpentMs: Long = 0
13
-
14
10
var numberValue: Int = Int .MIN_VALUE
15
11
16
12
// TODO: numberSymbol
17
13
14
+ /* *
15
+ * This field might not be included, e.g. if the event occurred in a 3rd-party app that did not
16
+ * load the content from the elimu.ai Content Provider. In that case, this field will be {@code null}.
17
+ */
18
18
var numberId: Long? = null
19
19
}
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ class NumberLearningEvent (val numberValue: Int) : LearningEvent() {
12
12
13
13
var numberSymbol: String? = null
14
14
15
+ /* *
16
+ * This field might not be included, e.g. if the event occurred in a 3rd-party app that did not
17
+ * load the content from the elimu.ai Content Provider. In that case, this field will be {@code null}.
18
+ */
15
19
var numberId: Long? = null
16
20
17
21
@Deprecated(" Will be replaced by `additionalData`" )
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import androidx.room.Entity
10
10
class StoryBookLearningEvent : LearningEvent () {
11
11
lateinit var storyBookTitle: String
12
12
13
+ /* *
14
+ * This field might not be included, e.g. if the event occurred in a 3rd-party app that did not
15
+ * load the content from the elimu.ai Content Provider. In that case, this field will be {@code null}.
16
+ */
13
17
var storyBookId: Long = 0L
14
18
15
19
@Deprecated(" Will be replaced by `additionalData`" )
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import androidx.room.Entity
10
10
class VideoLearningEvent : LearningEvent () {
11
11
lateinit var videoTitle: String
12
12
13
+ /* *
14
+ * This field might not be included, e.g. if the event occurred in a 3rd-party app that did not
15
+ * load the content from the elimu.ai Content Provider. In that case, this field will be {@code null}.
16
+ */
13
17
var videoId: Long? = null
14
18
15
19
@Deprecated(" Will be replaced by `additionalData`" )
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ import androidx.room.Entity
9
9
class WordAssessmentEvent : AssessmentEvent () {
10
10
lateinit var wordText: String
11
11
12
+ /* *
13
+ * This field might not be included, e.g. if the event occurred in a 3rd-party app that did not
14
+ * load the content from the elimu.ai Content Provider. In that case, this field will be {@code null}.
15
+ */
12
16
var wordId: Long? = null
13
-
14
- var masteryScore: Float = 0f
15
-
16
- var timeSpentMs: Long = 0L
17
17
}
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import androidx.room.Entity
10
10
class WordLearningEvent : LearningEvent () {
11
11
lateinit var wordText: String
12
12
13
+ /* *
14
+ * This field might not be included, e.g. if the learning was done in a 3rd-party app that did
15
+ * not load the content from the elimu.ai Content Provider. In that case, this field will be {@code null}.
16
+ */
13
17
var wordId: Long? = null
14
18
15
19
@Deprecated(" Will be replaced by `additionalData`" )
You can’t perform that action at this time.
0 commit comments