package Ġcom . android human . example . simple github . data . repository Ċ Ċ import Ġcom . android human . example . simple github . data . local . Search History Dao Ċ import Ġcom . android human . example . simple github . data . model . Github Repo Ċ import Ġio . reactivex . Comp letable Ċ import Ġio . reactivex . Flow able Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠRepo Local DataSource Impl Ġ@ Inject Ġconstructor ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġsearch History Dao : ĠSearch History Dao Ċ ): ĠRepo Local DataSource Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġadd ( repo : ĠGithub Repo ): ĠComp letable Ġ= ĠComp letable . from Callable { Ġsearch History Dao . add ( repo ) Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget History (): ĠFlow able < List < Github Repo >> Ġ= Ġsearch History Dao . get History () ĊĊĠĠĠ Ġoverride Ġfun Ġclear History (): ĠComp letable Ġ= ĠComp letable . from Callable { Ġsearch History Dao . clear All () Ġ} Ċ }