package Ġz lc . season . rx download 4 . recorder Ċ Ċ import Ġandroid . arch . persistence . room .* Ċ import Ġandroid . arch . persistence . room . On Conflict Strategy . IGNORE Ċ import Ġio . reactivex . Maybe Ċ import Ġz lc . season . rx download 4 . manager . Status Ċ Ċ @ Dao Ċ interface ĠTask Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠIG NORE ) ĊĠĠĠ Ġfun Ġinsert ( task Entity : ĠTask Entity ) ĊĊĠĠĠ Ġ@ Update ĊĠĠĠ Ġfun Ġupdate ( task Entity : ĠTask Entity ) ĊĊĠĠĠ Ġ@ Update ĊĠĠĠ Ġfun Ġupdate ( list : ĠList < Task Entity >) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete ( task Entity : ĠTask Entity ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġtask _ record ") ĊĠĠĠ Ġfun ĠgetAll (): ĠMaybe < List < Task Entity >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġtask _ record ĠWHERE Ġstatus Ġ= Ġ: status ") ĊĠĠĠ Ġfun ĠgetAll With Status ( status : ĠStatus ): ĠMaybe < List < Task Entity >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġtask _ record ĠLIMIT Ġ: size ĠOFFSET Ġ: start ") ĊĠĠĠ Ġfun Ġpage ( start : ĠInt , Ġsize : ĠInt ): ĠMaybe < List < Task Entity >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġtask _ record ĠWHERE Ġstatus =: status ĠLIMIT Ġ: size ĠOFFSET Ġ: start ") ĊĠĠĠ Ġfun Ġpage With Status ( start : ĠInt , Ġsize : ĠInt , Ġstatus : ĠStatus ): ĠMaybe < List < Task Entity >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġtask _ record ĠWHERE Ġid Ġ= Ġ: id ") ĊĠĠĠ Ġfun Ġget ( id : ĠInt ): ĠMaybe < Task Entity > Ċ }