Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. @Dao
  2. interface LegoSetDao {
  3.  
  4. @Query("SELECT * FROM sets WHERE themeId = :themeId ORDER BY year DESC")
  5. fun getLegoSets(themeId: Int): LiveData<List<LegoSet>>
  6.  
  7. @Query("SELECT * FROM sets WHERE themeId = :themeId ORDER BY year DESC")
  8. fun getPagedLegoSetsByTheme(themeId: Int): DataSource.Factory<Int, LegoSet>
  9.  
  10. // ...
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement