package Ġme . d mb a . my checks . data . source . local Ċ Ċ import Ġandroid . arch . persistence . room . Dao Ċ import Ġandroid . arch . persistence . room . Query Ċ import Ġandroid . arch . persistence . room . Transaction Ċ import Ġio . reactivex . Flow able Ċ import Ġio . reactivex . Maybe Ċ import Ġme . d mb a . my checks . data . source . local . model . Check Object Ċ import Ġme . d mb a . my checks . data . source . local . model . Check With Items Ċ import Ġme . d mb a . my checks . data . utils . Base Dao Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġd mb a Ġon Ġ 6 / 6 / 1 8 . Ċ Ġ*/ Ċ @ Dao Ċ internal Ġinterface ĠChecks Dao Ġ: ĠBase Dao < Check Object > Ġ{ ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠChecks ") ĊĠĠĠ Ġfun ĠgetAll (): ĠFlow able < List < Check With Items >> ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠChecks ĠWHERE Ġid Ġ= Ġ: check Id ") ĊĠĠĠ Ġfun Ġget ById ( check Id : ĠString ): ĠMaybe < Check With Items > ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM ĠChecks ") ĊĠĠĠ Ġfun Ġdelete All () Ċ Ċ } Ċ