package Ġcom . ny iny i ht un l win . projects . food ah olic . persistence . db . dao Ċ Ċ import Ġandroid . arch . persistence . room . Dao Ċ import Ġandroid . arch . persistence . room . Insert Ċ import Ġandroid . arch . persistence . room . On Conflict Strategy Ċ import Ġandroid . arch . persistence . room . Query Ċ import Ġcom . ny iny i ht un l win . projects . food ah olic . mv vm . models . Bookmark Model Ċ import Ġcom . ny iny i ht un l win . projects . food ah olic . mv vm . models . Me al Model Ċ import Ġcom . ny iny i ht un l win . projects . food ah olic . utils . App Constants Ċ Ċ @ Dao Ċ abstract Ġinterface ĠBook mark Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġabstract Ġfun Ġinsert Me al ( meal Model : ĠBook mark Model ): ĠLong ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġabstract Ġfun Ġinsert Me als ( me als : ĠList < Bookmark Model >): ĠLong Array ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġ${ App Constants . TABLE _ BOOK MARK S }") ĊĠĠĠ Ġabstract Ġfun Ġget Book marked Me als (): ĠList < Bookmark Model > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġ${ App Constants . TABLE _ BOOK MARK S } ĠWHERE Ġid Me al Ġ= Ġ: meal Id ") ĊĠĠĠ Ġabstract Ġfun Ġget Me al ById ( meal Id : ĠString ): ĠBook mark Model ? ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġ${ App Constants . TABLE _ BOOK MARK S } ĠWHERE Ġid Me al Ġ= Ġ: meal Id ") ĊĠĠĠ Ġabstract Ġfun Ġdelete Me al ById ( meal Id : ĠString ): ĠInt Ċ Ċ }