-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Paginate OnboardingScreen games results
- Loading branch information
1 parent
d24691c
commit 5db9b92
Showing
9 changed files
with
204 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
shared/src/commonMain/kotlin/com/mr3y/ludi/shared/core/repository/GamesRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package com.mr3y.ludi.shared.core.repository | ||
|
||
import app.cash.paging.PagingData | ||
import com.mr3y.ludi.shared.core.model.Game | ||
import com.mr3y.ludi.shared.core.model.GamesGenresPage | ||
import com.mr3y.ludi.shared.core.model.GamesPage | ||
import com.mr3y.ludi.shared.core.model.Result | ||
import com.mr3y.ludi.shared.core.repository.query.GamesQueryParameters | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface GamesRepository { | ||
suspend fun queryGames(queryParameters: GamesQueryParameters): Result<GamesPage, Throwable> | ||
fun queryGames(queryParameters: GamesQueryParameters): Flow<PagingData<Game>> | ||
|
||
suspend fun queryGamesGenres(): Result<GamesGenresPage, Throwable> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.