Class HighScoreRepositoryImpl
- java.lang.Object
-
- marc.nguyen.minesweeper.client.data.repositories.HighScoreRepositoryImpl
-
- All Implemented Interfaces:
HighScoreRepository
public class HighScoreRepositoryImpl extends java.lang.Object implements HighScoreRepository
-
-
Constructor Summary
Constructors Constructor Description HighScoreRepositoryImpl(dagger.Lazy<HighScoreDao> highScoreDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull io.reactivex.rxjava3.core.Single<java.util.List<HighScore>>
findAll()
Get all the HighScore of the local database.@NotNull io.reactivex.rxjava3.core.Completable
save(@NotNull HighScore highScore)
Save a HighScore into the local database.
-
-
-
Constructor Detail
-
HighScoreRepositoryImpl
@Inject public HighScoreRepositoryImpl(dagger.Lazy<HighScoreDao> highScoreDao)
-
-
Method Detail
-
save
@NotNull public @NotNull io.reactivex.rxjava3.core.Completable save(@NotNull @NotNull HighScore highScore)
Description copied from interface:HighScoreRepository
Save a HighScore into the local database.- Specified by:
save
in interfaceHighScoreRepository
- Parameters:
highScore
- A HighScore.- Returns:
- A completable.
-
findAll
@NotNull public @NotNull io.reactivex.rxjava3.core.Single<java.util.List<HighScore>> findAll()
Description copied from interface:HighScoreRepository
Get all the HighScore of the local database.- Specified by:
findAll
in interfaceHighScoreRepository
- Returns:
- A Single List of HighScore.
-
-