package Ġcom . b int ang . entity . database Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġandroidx . room . Update Ċ import Ġcom . b int ang . entity . entities . Movie Ċ Ċ @ Dao Ċ interface ĠMovie Dao Ġ{ ĊĊĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠ Ġfun Ġinsert Movie List ( movies : ĠList < Movie >) ĊĊĠ Ġ@ Update ĊĠ Ġfun Ġupdate Movie ( movie : ĠMovie ) ĊĊĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠMOV IE ĠWHERE Ġid Ġ= Ġ: id _ ") ĊĠ Ġfun Ġget Movie ( id _: ĠInt ): ĠMovie ĊĊĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠMovie ĠWHERE Ġpage Ġ= Ġ: page _ ") ĊĠ Ġfun Ġget Movie List ( page _: ĠInt ): ĠList < Movie > ĊĊĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠMovie ĠWHERE Ġfavour ite Ġ= Ġ' 1 '") ĊĠ Ġfun Ġget F avour ite Movie List (): ĠList < Movie > Ċ } Ċ