interface AchievementsDao
Dao that manages Achievements in the database
Author
Jan Müller
Author
Lucas Held
deleteAchievementById |
Deletes a Achievement with the matching id from the database. abstract fun deleteAchievementById(name: Int): Unit |
deleteAchievements |
Deletes all Achievements from the database. abstract fun deleteAchievements(): Unit |
getAchievementByName |
Returns the Achievement with the matching name. abstract fun getAchievementByName(name: Int): Achievement? |
getAchievementCount |
Returns the count of Achievements. abstract fun getAchievementCount(): Int |
getAchievements |
Returns a List of all Achievement, wrapped in LiveData. abstract fun getAchievements(): LiveData<List<Achievement>> |
getAchievementWithName |
Returns the Achievement with the matching name, wrapped in LiveData. abstract fun getAchievementWithName(name: Int): LiveData<Achievement> |
insert |
Inserts a Achievement into the database. abstract fun insert(achievement: Achievement): Unit |