add chat basics
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package ru.shadowsparky.updater.domain
|
||||
|
||||
interface UpdateFetcher {
|
||||
suspend fun fetch(versionCode: Long): UpdateInfo
|
||||
|
||||
companion object {
|
||||
const val ARG_VERSION_CODE = "versionCode"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package ru.shadowsparky.updater.domain
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class UpdateInfo(
|
||||
val versionCode: Long? = null,
|
||||
val versionName: String? = null,
|
||||
val url: String? = null,
|
||||
val changelog: String? = null,
|
||||
val force: Boolean = false
|
||||
)
|
||||
Reference in New Issue
Block a user