refactor: move Record model to data.records module
This commit is contained in:
+1
-1
@@ -1,8 +1,8 @@
|
||||
package fr.ajaury.gwenedeg.records.data
|
||||
|
||||
import fr.ajaury.gwenedeg.core.model.Phrase
|
||||
import fr.ajaury.gwenedeg.core.model.Record
|
||||
import fr.ajaury.gwenedeg.records.domain.RecordRepository
|
||||
import fr.ajaury.gwenedeg.records.model.Record
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.flowOf
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package fr.ajaury.gwenedeg.records.domain
|
||||
|
||||
import fr.ajaury.gwenedeg.core.model.Record
|
||||
import fr.ajaury.gwenedeg.records.model.Record
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface RecordRepository {
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package fr.ajaury.gwenedeg.records.model
|
||||
|
||||
import fr.ajaury.gwenedeg.core.model.Phrase
|
||||
|
||||
data class Record(
|
||||
val id: Int,
|
||||
val index: Int,
|
||||
val title: Phrase,
|
||||
val audioResourcePath: String,
|
||||
val subtitleResourcePath: String,
|
||||
val translationSubtitleResourcePath: String? = null,
|
||||
)
|
||||
Reference in New Issue
Block a user