From daaaf902f5107b715feed927abe22b415a967d2e Mon Sep 17 00:00:00 2001 From: davidoskky Date: Wed, 17 Aug 2022 20:26:02 +0200 Subject: [PATCH] Update todo comments --- .../apps/readerforselfossv2/repository/RepositoryImpl.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/repository/RepositoryImpl.kt b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/repository/RepositoryImpl.kt index d6b1f16..fd921ee 100644 --- a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/repository/RepositoryImpl.kt +++ b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/repository/RepositoryImpl.kt @@ -65,7 +65,6 @@ class Repository(private val api: SelfossApi, private val apiDetails: ApiDetails items = ArrayList(fetchedItems) } } else { - // TODO: Provide an error message if the connection is not available. // TODO: Get items from the database } return items @@ -88,7 +87,7 @@ class Repository(private val api: SelfossApi, private val apiDetails: ApiDetails appendItems(fetchedItems) } } else { - // TODO: Provide an error message + // TODO: Get items from the database } return items } @@ -105,6 +104,7 @@ class Repository(private val api: SelfossApi, private val apiDetails: ApiDetails null ) } else { + // TODO: Provide an error message null } } @@ -186,7 +186,6 @@ class Repository(private val api: SelfossApi, private val apiDetails: ApiDetails } suspend fun unmarkAsRead(item: SelfossModel.Item): Boolean { - // TODO: Check internet connection val success = unmarkAsReadById(item.id) if (success) { @@ -196,7 +195,6 @@ class Repository(private val api: SelfossApi, private val apiDetails: ApiDetails } suspend fun unmarkAsReadById(id: Int): Boolean { - // TODO: Check internet connection var success = false if (isConnectionAvailable.value && !offlineOverride) { success = api.unmarkAsRead(id.toString())?.isSuccess == true