From 4850a9f9794b829cb0a293d1dc3a1187e90e835f Mon Sep 17 00:00:00 2001 From: takahirom Date: Mon, 5 Aug 2024 19:38:50 +0900 Subject: [PATCH 1/2] Use 2024 contributors --- .../data/contributors/ContributorsApiClient.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/contributors/ContributorsApiClient.kt b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/contributors/ContributorsApiClient.kt index e272bc6e3..7017678de 100644 --- a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/contributors/ContributorsApiClient.kt +++ b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/contributors/ContributorsApiClient.kt @@ -13,7 +13,7 @@ import kotlinx.collections.immutable.PersistentList import kotlinx.collections.immutable.toPersistentList internal interface ContributorApi { - @GET("/events/droidkaigi2023/contributors") + @GET("/events/droidkaigi2024/contributors") suspend fun getContributors(): ContributorsResponse } @@ -24,11 +24,9 @@ public class DefaultContributorsApiClient( private val contributorApi = ktorfit.create() public override suspend fun contributors(): PersistentList { - // FIXME: When the API is ready, remove the comments below and return the actual data. - return Contributor.fakes() -// return networkService { -// contributorApi.getContributors() -// }.toContributorList() + return networkService { + contributorApi.getContributors() + }.toContributorList() } } From 2fbb1f00b27197a2840a072455f078cc5928b4b6 Mon Sep 17 00:00:00 2001 From: takahirom Date: Mon, 5 Aug 2024 19:55:08 +0900 Subject: [PATCH 2/2] Fix import --- .../confsched/data/contributors/ContributorsApiClient.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/contributors/ContributorsApiClient.kt b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/contributors/ContributorsApiClient.kt index 7017678de..0a8f4ee76 100644 --- a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/contributors/ContributorsApiClient.kt +++ b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/contributors/ContributorsApiClient.kt @@ -8,7 +8,6 @@ import de.jensklingenberg.ktorfit.http.GET import io.github.droidkaigi.confsched.data.NetworkService import io.github.droidkaigi.confsched.data.contributors.response.ContributorsResponse import io.github.droidkaigi.confsched.model.Contributor -import io.github.droidkaigi.confsched.model.fakes import kotlinx.collections.immutable.PersistentList import kotlinx.collections.immutable.toPersistentList