diff --git a/shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/FeedRepositoryImpl.kt b/shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/FeedRepositoryImpl.kt new file mode 100644 index 00000000..0a902a7a --- /dev/null +++ b/shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/FeedRepositoryImpl.kt @@ -0,0 +1,50 @@ +package com.android254.shared.data.repos + +import com.android254.shared.domain.models.FeedDomainModel +import com.android254.shared.domain.repos.FeedRepository +import kotlinx.coroutines.flow.Flow +import kotlinx.coroutines.flow.flowOf + +class FeedRepositoryImpl : FeedRepository { + override fun fetchFeed(): Flow> { + return flowOf( + listOf( + FeedDomainModel( + title = "After Party", + body = "We will have an after party, All are welcomed.", + topic = "", + url = "", + image = "", + createdAt = "" + ) + ) + ) + } + + override fun fetchFeedById(id: Int): Flow { + return flowOf( + FeedDomainModel( + title = "After Party", + body = "We will have an after party, All are welcomed.", + topic = "", + url = "", + image = "", + createdAt = "" + ) + ) + } + + override suspend fun syncFeed() { + val feeds = mutableListOf() + feeds.add( + FeedDomainModel( + title = "After Party", + body = "We will have an after party, All are welcomed.", + topic = "", + url = "", + image = "", + createdAt = "" + ) + ) + } +} \ No newline at end of file