diff --git a/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/models/DownloadLimit.kt b/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/models/DownloadLimit.kt index 494598ca..c4379b13 100644 --- a/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/models/DownloadLimit.kt +++ b/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/models/DownloadLimit.kt @@ -18,8 +18,8 @@ package com.infomaniak.multiplatform_swisstransfer.common.models enum class DownloadLimit(val value: String) { - TWOHUNDREDFIFTY("250"), - ONEHUNDRED("100"), + TWO_HUNDRED_FIFTY("250"), + ONE_HUNDRED("100"), TWENTY("20"), ONE("1"), } diff --git a/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/setting/AppSettingsDB.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/setting/AppSettingsDB.kt index b5c346c4..970c7e28 100644 --- a/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/setting/AppSettingsDB.kt +++ b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/setting/AppSettingsDB.kt @@ -39,7 +39,7 @@ class AppSettingsDB : RealmObject, AppSettings { _validityPeriod = value.value } - private var _downloadLimit: String = DownloadLimit.TWOHUNDREDFIFTY.value + private var _downloadLimit: String = DownloadLimit.TWO_HUNDRED_FIFTY.value override var downloadLimit: DownloadLimit get() = DownloadLimit.entries.find { it.value == _downloadLimit } ?: DEFAULT_DOWNLOAD_LIMIT set(value) { @@ -56,7 +56,7 @@ class AppSettingsDB : RealmObject, AppSettings { companion object { private val DEFAULT_THEME = Theme.SYSTEM private val DEFAULT_VALIDITY_PERIOD = ValidityPeriod.THIRTY - private val DEFAULT_DOWNLOAD_LIMIT = DownloadLimit.TWOHUNDREDFIFTY + private val DEFAULT_DOWNLOAD_LIMIT = DownloadLimit.TWO_HUNDRED_FIFTY private val DEFAULT_EMAIL_LANGUAGE = EmailLanguage.ENGLISH } }