From a4b7fa0dbd0b05b85b15b8515f5d9e3b8a46f645 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Tue, 3 Sep 2024 15:52:30 +0200 Subject: [PATCH] Correctly name `DownloadLimit` members --- .../common/models/DownloadLimit.kt | 4 ++-- .../database/models/setting/AppSettingsDB.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 } }