package Ġcom . example . le fil ms Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Delete Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . Query Ċ Ċ @ Dao Ċ interface ĠF avorite Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ĊĠĠĠ Ġfun Ġadd Favorite ( favorite : ĠF avorite ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠF avorite ") ĊĠĠĠ Ġfun ĠgetAll Favorite () Ġ: ĠList < Favorite > ĊĊĠĠĠ Ġ@ Query (" SELECT ĠEXISTS Ġ( SELECT Ġ 1 ĠFROM ĠF avorite ĠWHERE Ġtitle =: title )") ĊĠĠĠ Ġfun Ġis Favorite ( title : ĠString ) Ġ: ĠBoolean ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete Favorite ( favorite : ĠF avorite ) Ċ }