package eu.friedcutlet.yokan.database import kotlinx.serialization.Serializable @Serializable data class DbAutomaticUpdateConstraints( /** Legacy preserves the existing download-network setting and its platform semantics. */ val network: DbUpdateNetwork = DbUpdateNetwork.Legacy, val requireExternalPower: Boolean = false, /** Explicit user classification, used only when the platform cannot report network cost. */ val unknownNetworkCost: DbUnknownNetworkCost = DbUnknownNetworkCost.Wait, ) @Serializable enum class DbUpdateNetwork { Legacy, Connected, Unmetered, Wifi } @Serializable enum class DbUnknownNetworkCost { Wait, Metered, Unmetered }