DbAutomaticUpdateConstraints.kt
composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/database/DbAutomaticUpdateConstraints.kt
1package eu.friedcutlet.yokan.database23import kotlinx.serialization.Serializable45@Serializable6data class DbAutomaticUpdateConstraints(7 /** Legacy preserves the existing download-network setting and its platform semantics. */8 val network: DbUpdateNetwork = DbUpdateNetwork.Legacy,9 val requireExternalPower: Boolean = false,10 /** Explicit user classification, used only when the platform cannot report network cost. */11 val unknownNetworkCost: DbUnknownNetworkCost = DbUnknownNetworkCost.Wait,12)1314@Serializable15enum class DbUpdateNetwork { Legacy, Connected, Unmetered, Wifi }1617@Serializable18enum class DbUnknownNetworkCost { Wait, Metered, Unmetered }19