All checks were successful
CI Pipeline / lint-and-test (pull_request) Successful in 4m3s
- extracted data classes (ZumOerItem, ParsedH5PTask) - moved hardcoded fallback OER tasks into a dedicated JSON resource file - removed hardcoded tasks from InMemoryKidioRepository
18 lines
419 B
Kotlin
18 lines
419 B
Kotlin
package com.oliver.kidio.backend.ingestion
|
|
|
|
import kotlinx.serialization.Serializable
|
|
|
|
const val DEFAULT_LICENSE: String = "CC BY-SA 4.0"
|
|
|
|
@Serializable
|
|
data class ZumOerItem(
|
|
val id: String,
|
|
val title: String,
|
|
val subject: String,
|
|
val grade: Int? = null,
|
|
val downloadUrl: String,
|
|
val license: String = DEFAULT_LICENSE,
|
|
val library: String? = null,
|
|
val rawJsonContent: String? = null,
|
|
)
|