Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hojat72elect committed Oct 21, 2024
1 parent a77f539 commit 98c8b58
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ interface LikedGamesLocalDataSource {
suspend fun unlikeGame(gameId: Int)
suspend fun isGameLiked(gameId: Int): Boolean

/**
* Checks if a specific game is liked ro not.
*/
fun observeGameLikeState(gameId: Int): Flow<Boolean>

/**
* Returns a list of all liked games.
*/
fun observeLikedGames(pagination: Pagination): Flow<List<Game>>
}

0 comments on commit 98c8b58

Please sign in to comment.