From 7b0d102d8ec40c7af68edbd2378865d21227c998 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 543c4a12..e998ee70 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 @@ -19,8 +19,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 7ad2a89d..c3c67384 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 @@ -40,7 +40,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) { @@ -57,7 +57,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 } }