package Ġme . j ag deep . database . 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 Ġio . reactivex . Single Ċ import Ġme . j ag deep . database . model . Cached Result Ċ Ċ @ Dao Ċ abstract Ġclass ĠResults Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġresults Ġwhere Ġpage Id ĠIN Ġ(: page Ids )") ĊĠĠĠ Ġabstract Ġfun Ġget Results ( page Ids : ĠList < Int >): ĠSingle < List < Cached Result >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġabstract Ġfun Ġinsert ( results : ĠList < Cached Result >) ĊĊĠĠĠ Ġ@ Query (" DELETE Ġfrom Ġresults ") ĊĠĠĠ Ġabstract Ġfun Ġdelete Results () Ċ Ċ } Ċ