Skip to content

Commit

Permalink
Merge branch 'main' into yamada-ika/brush-up-timetable-item-card
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamada-Ika committed Aug 5, 2024
2 parents 4ce6e75 + 41b7d01 commit ac30606
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ 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

internal interface ContributorApi {
@GET("/events/droidkaigi2023/contributors")
@GET("/events/droidkaigi2024/contributors")
suspend fun getContributors(): ContributorsResponse
}

Expand All @@ -24,11 +23,9 @@ public class DefaultContributorsApiClient(

private val contributorApi = ktorfit.create<ContributorApi>()
public override suspend fun contributors(): PersistentList<Contributor> {
// 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()
}
}

Expand Down

0 comments on commit ac30606

Please sign in to comment.