package Ġcom . example . k ook player . db Ċ Ċ import Ġandroidx . room .* Ċ import Ġcom . example . k ook player . db . entities . F avorites Ċ Ċ @ Dao Ċ interface ĠF avorite Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . IGNORE ) ĊĠĠĠ Ġsuspend Ġfun Ġadd Song ( song : ĠF avorites ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġsuspend Ġfun Ġdelete Song ( song : ĠF avorites ) ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġplaylist _ table ") ĊĠĠĠ Ġsuspend Ġfun Ġdelete All () ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġfavor ites _ table ") ĊĠĠĠ Ġfun Ġget Fav s (): ĠList < F avorites > Ċ } Ċ Ċ //@ Query (" DELETE ĠFROM Ġfavor ites _ table ĠWHERE Ġsong Id Ġ= Ġ: song Id ")