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:
KaiserBh 2023-11-14 17:48:10 +11:00
parent 71872ead81
commit dac08ba3da
No known key found for this signature in database
GPG Key ID: 14D73B142042BBA9
2 changed files with 6 additions and 10 deletions

View File

@ -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,
)

View File

@ -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,