Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Dao
- interface LegoSetDao {
- @Query("SELECT * FROM sets WHERE themeId = :themeId ORDER BY year DESC")
- fun getLegoSets(themeId: Int): LiveData<List<LegoSet>>
- @Query("SELECT * FROM sets WHERE themeId = :themeId ORDER BY year DESC")
- fun getPagedLegoSetsByTheme(themeId: Int): DataSource.Factory<Int, LegoSet>
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement