package Ġbr . com . help dev . github ers . data . db . dao Ċ Ċ import Ġandroidx . paging . DataSource Ċ import Ġandroidx . room .* Ċ import Ġbr . com . help dev . github ers . data . db . entity . Fav User Ċ import Ġbr . com . help dev . github ers . data . db . entity . User With Fav Ċ Ċ @ Dao Ċ interface ĠF avorite Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġu .*, f . user _ id Ġf _ user _ id ĠFROM Ġfav _ user Ġf ĠJOIN Ġuser Ġu ĠON Ġf . user _ id Ġ= Ġu . user _ id ") ĊĠĠĠ Ġfun Ġload F avorites (): ĠDataSource . Factory < Int , ĠUser With Fav > ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . IGNORE ) ĊĠĠĠ Ġfun Ġinsert Favorite ( favorite : ĠF av User ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġremove Favorite ( favorite : ĠF av User ) Ċ }