package Ġcom . bu get o . domain . use cases Ċ Ċ import Ġcom . bu get o . domain . common . Base Flow able UseCase Ċ import Ġcom . bu get o . domain . common . Flow able Rx Transformer Ċ import Ġcom . bu get o . domain . entities . News Sources Entity Ċ import Ġcom . bu get o . domain . repositories . News Repository Ċ import Ġio . reactivex . Flow able Ċ Ċ /** Ċ Ġ* ĠIt Ġwill Ġfirst Ġget Ġarticles Ġfrom Ġthe Ġlocal Ġdatabase Ġand Ġalso Ġupdate Ġit Ġwith Ġthe Ġlatest Ċ Ġ* Ġarticles Ġfrom Ġremote Ċ Ġ*/ Ċ class ĠGet News UseCase ( private Ġval Ġtransformer : ĠFlow able Rx Transformer < News Sources Entity >, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġprivate Ġval Ġrepositories : ĠNews Repository ): ĠBase Flow able UseCase < News Sources Entity >( transformer ){ ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Flow able ( data : ĠMap < String , ĠAny >? ): ĠFlow able < News Sources Entity > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrepositories . get News () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget News (): ĠFlow able < News Sources Entity >{ ĊĠĠĠĠĠĠĠ Ġval Ġdata Ġ= ĠHashMap < String , ĠString >() ĊĠĠĠĠĠĠĠ Ġreturn Ġsingle ( data ) ĊĠĠĠ Ġ} Ċ }