Class HighScoreRepositoryImpl

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface HighScoreRepository
        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 interface HighScoreRepository
        Returns:
        A Single List of HighScore.