mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-15 15:02:49 +01:00
refactor: Move SyncData to SyncService.kt
Since it only contains a single class doesn't need to be in it's own package. Signed-off-by: KaiserBh <kaiserbh@proton.me>
This commit is contained in:
parent
71872ead81
commit
dac08ba3da
@ -1,9 +0,0 @@
|
|||||||
package eu.kanade.tachiyomi.data.sync.models
|
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.data.backup.models.Backup
|
|
||||||
import kotlinx.serialization.Serializable
|
|
||||||
|
|
||||||
@Serializable
|
|
||||||
data class SyncData(
|
|
||||||
val backup: Backup? = null,
|
|
||||||
)
|
|
@ -5,11 +5,16 @@ import eu.kanade.tachiyomi.data.backup.models.Backup
|
|||||||
import eu.kanade.tachiyomi.data.backup.models.BackupCategory
|
import eu.kanade.tachiyomi.data.backup.models.BackupCategory
|
||||||
import eu.kanade.tachiyomi.data.backup.models.BackupChapter
|
import eu.kanade.tachiyomi.data.backup.models.BackupChapter
|
||||||
import eu.kanade.tachiyomi.data.backup.models.BackupManga
|
import eu.kanade.tachiyomi.data.backup.models.BackupManga
|
||||||
import eu.kanade.tachiyomi.data.sync.models.SyncData
|
import kotlinx.serialization.Serializable
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
import tachiyomi.domain.sync.SyncPreferences
|
import tachiyomi.domain.sync.SyncPreferences
|
||||||
import java.time.Instant
|
import java.time.Instant
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class SyncData(
|
||||||
|
val backup: Backup? = null,
|
||||||
|
)
|
||||||
|
|
||||||
abstract class SyncService(
|
abstract class SyncService(
|
||||||
val context: Context,
|
val context: Context,
|
||||||
val json: Json,
|
val json: Json,
|
||||||
|
Loading…
Reference in New Issue
Block a user