package Ġorg . step ik . android . cache . personal _ dead lines Ċ Ċ import Ġio . reactivex . Comp letable Ċ import Ġio . reactivex . Single Ċ import Ġorg . step ik . android . cache . personal _ dead lines . dao . Dead lines Banner Dao Ċ import Ġorg . step ik . android . cache . personal _ dead lines . structure . Db Structure Dead lines Banner Ċ import Ġorg . step ik . android . data . personal _ dead lines . source . Dead lines Banner Cache DataSource Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠDead lines Banner Cache DataSource Impl Ċ @ Inject Ċ constructor ( ĊĠĠĠ Ġprivate Ġval Ġdead lines Banner Dao : ĠDead lines Banner Dao Ċ ) Ġ: ĠDead lines Banner Cache DataSource Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġadd Course Id ( course Id : ĠLong ): ĠComp letable Ġ= ĊĠĠĠĠĠĠĠ ĠComp letable . from Action Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdead lines Banner Dao . insert Or Replace ( course Id ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġremove Course Id ( course Id : ĠLong ): ĠComp letable Ġ= ĊĠĠĠĠĠĠĠ ĠComp letable . from Action Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdead lines Banner Dao . remove ( Db Structure Dead lines Banner . Columns . CO URSE _ ID , Ġcourse Id . toString ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġhas Course Id ( course Id : ĠLong ): ĠSingle < Boolean > Ġ= ĊĠĠĠĠĠĠĠ ĠSingle . from Callable Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdead lines Banner Dao . isIn Db ( course Id ) ĊĠĠĠĠĠĠĠ Ġ} Ċ }