package Ġcom . ad wi . pex wall papers . data . repository Ċ Ċ import Ġcom . ad wi . pex wall papers . data . local . Wall paper Database Ċ import Ġcom . ad wi . pex wall papers . data . local . entity . Wall paper Ċ import Ġcom . ad wi . pex wall papers . data . repository . interfaces . F avorites Repository Interface Ċ import Ġcom . ad wi . pex wall papers . di . Io Dispatcher Ċ import Ġkotlinx . coroutines . Coroutine Dispatcher Ċ import Ġkotlinx . coroutines . flow . flow On Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠF avorites Repository Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġwall papers Database : ĠWall paper Database Ċ ) Ġ: ĠF avorites Repository Interface Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġdao Ġ= Ġwall papers Database . favorites Dao () ĊĊĠĠĠ Ġoverride Ġfun ĠgetAll F avorites () Ġ= Ġdao . getAll F avorites () ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġdelete Non Favorite Wall papers Ol der Than ( timestamp In Millis : ĠLong ) Ġ= ĊĠĠĠĠĠĠĠ Ġdao . delete Non Favorite Wall papers Ol der Than ( timestamp In Millis ) ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġreset All F avorites () Ġ= Ġdao . reset All F avorites () ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġupdate F avorites ( wall paper : ĠWall paper ) Ġ= Ġdao . update Wall paper ( wall paper ) Ċ }