From f4945bfc854d18a4b2493695e7369b5787b21eba Mon Sep 17 00:00:00 2001 From: Yamada_Ika <73375669+Yamada-Ika@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:39:43 +0900 Subject: [PATCH 1/5] chore: use fake contributor data --- .../confsched/data/contributors/ContributorsApiClient.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 73bb537b0..b3b738986 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 @@ -5,6 +5,7 @@ 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 @@ -20,9 +21,11 @@ public class DefaultContributorsApiClient( private val contributorApi = ktorfit.create() public override suspend fun contributors(): PersistentList { - return networkService { - contributorApi.getContributors() - }.toContributorList() + // FIXME: When the API is ready, remove the comments below and return the actual data. + return Contributor.fakes() +// return networkService { +// contributorApi.getContributors() +// }.toContributorList() } } From 4ac63c6894a3874ca54806728830d65afc19e0de Mon Sep 17 00:00:00 2001 From: Yamada_Ika <73375669+Yamada-Ika@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:39:49 +0900 Subject: [PATCH 2/5] chore: use fake sponsor data --- .../confsched/data/sponsors/SponsorsApiClient.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/sponsors/SponsorsApiClient.kt b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/sponsors/SponsorsApiClient.kt index 161fd0d07..a8d44ab0d 100644 --- a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/sponsors/SponsorsApiClient.kt +++ b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/sponsors/SponsorsApiClient.kt @@ -7,6 +7,7 @@ import io.github.droidkaigi.confsched.data.sponsors.response.SponsorResponse import io.github.droidkaigi.confsched.data.sponsors.response.SponsorsResponse import io.github.droidkaigi.confsched.model.Plan import io.github.droidkaigi.confsched.model.Sponsor +import io.github.droidkaigi.confsched.model.fakes import kotlinx.collections.immutable.PersistentList import kotlinx.collections.immutable.toPersistentList @@ -22,9 +23,11 @@ public class DefaultSponsorsApiClient( private val sponsorApi = ktorfit.create() public override suspend fun sponsors(): PersistentList { - return networkService { - sponsorApi.getSponsors() - }.toSponsorList() + // FIXME: When the API is ready, remove the comments below and return the actual data. + return Sponsor.fakes() +// return networkService { +// sponsorApi.getSponsors() +// }.toSponsorList() } } From 566966a46836be8c1869ae14fba367424e95140a Mon Sep 17 00:00:00 2001 From: Yamada_Ika <73375669+Yamada-Ika@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:39:53 +0900 Subject: [PATCH 3/5] chore: use fake staff data --- .../droidkaigi/confsched/data/staff/StaffApiClient.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt index aec8e990f..101179803 100644 --- a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt +++ b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt @@ -5,7 +5,9 @@ import de.jensklingenberg.ktorfit.http.GET import io.github.droidkaigi.confsched.data.NetworkService import io.github.droidkaigi.confsched.data.staff.response.StaffResponse import io.github.droidkaigi.confsched.data.staff.response.StaffsResponse +import io.github.droidkaigi.confsched.model.Contributor import io.github.droidkaigi.confsched.model.Staff +import io.github.droidkaigi.confsched.model.fakes import kotlinx.collections.immutable.PersistentList import kotlinx.collections.immutable.toPersistentList @@ -22,9 +24,11 @@ public class DefaultStaffApiClient( private val staffApi = ktorfit.create() public override suspend fun getStaff(): PersistentList { - return networkService { - staffApi.getStaff() - }.toStaffList() + // FIXME: When the API is ready, remove the comments below and return the actual data. + return Staff.fakes() +// return networkService { +// staffApi.getStaff() +// }.toStaffList() } } From e74ce75836f100bb89e9065bc589f863301e42bb Mon Sep 17 00:00:00 2001 From: Yamada_Ika <73375669+Yamada-Ika@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:55:54 +0900 Subject: [PATCH 4/5] chore: format --- .../io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt index 101179803..bab6690dc 100644 --- a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt +++ b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt @@ -5,7 +5,6 @@ import de.jensklingenberg.ktorfit.http.GET import io.github.droidkaigi.confsched.data.NetworkService import io.github.droidkaigi.confsched.data.staff.response.StaffResponse import io.github.droidkaigi.confsched.data.staff.response.StaffsResponse -import io.github.droidkaigi.confsched.model.Contributor import io.github.droidkaigi.confsched.model.Staff import io.github.droidkaigi.confsched.model.fakes import kotlinx.collections.immutable.PersistentList From a3d0c2a8e928b1c5c35c454086321535ded66a52 Mon Sep 17 00:00:00 2001 From: Yamada_Ika <73375669+Yamada-Ika@users.noreply.github.com> Date: Thu, 1 Aug 2024 01:02:39 +0900 Subject: [PATCH 5/5] chore: format --- .../confsched/data/contributors/ContributorsApiClient.kt | 3 +++ .../droidkaigi/confsched/data/sponsors/SponsorsApiClient.kt | 3 +++ .../github/droidkaigi/confsched/data/staff/StaffApiClient.kt | 3 +++ 3 files changed, 9 insertions(+) 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 b3b738986..e272bc6e3 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 @@ -1,3 +1,6 @@ +// FIXME: When the API is ready, remove Suppress annotation below. +@file:Suppress("UnusedPrivateProperty", "UnusedPrivateMember") + package io.github.droidkaigi.confsched.data.contributors import de.jensklingenberg.ktorfit.Ktorfit diff --git a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/sponsors/SponsorsApiClient.kt b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/sponsors/SponsorsApiClient.kt index a8d44ab0d..b6bae855c 100644 --- a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/sponsors/SponsorsApiClient.kt +++ b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/sponsors/SponsorsApiClient.kt @@ -1,3 +1,6 @@ +// FIXME: When the API is ready, remove Suppress annotation below. +@file:Suppress("UnusedPrivateProperty", "UnusedPrivateMember") + package io.github.droidkaigi.confsched.data.sponsors import de.jensklingenberg.ktorfit.Ktorfit diff --git a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt index bab6690dc..d1874edbb 100644 --- a/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt +++ b/core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/staff/StaffApiClient.kt @@ -1,3 +1,6 @@ +// FIXME: When the API is ready, remove Suppress annotation below. +@file:Suppress("UnusedPrivateProperty", "UnusedPrivateMember") + package io.github.droidkaigi.confsched.data.staff import de.jensklingenberg.ktorfit.Ktorfit