package Ġdev . dvd ci ri . sample app . data Ċ Ċ import Ġdev . dvd ci ri . sample app . data . mapper . User Dto To User Mapper Ċ import Ġdev . dvd ci ri . sample app . data . source . Json Placeholder Network DataSource Ċ import Ġdev . dvd ci ri . sample app . domain . model . User Ċ import Ġdev . dvd ci ri . sample app . domain . repository . UserRepository Ċ import Ġio . reactivex . Single ĊĊ Ċ class ĠUser Repository Impl Ċ constructor ( ĊĠĠĠ Ġprivate Ġval Ġjson Placeholder Network DataSource : ĠJson Placeholder Network DataSource , ĊĠĠĠ Ġprivate Ġval Ġuser Dto To User Mapper : ĠUser Dto To User Mapper Ċ ) Ġ: ĠUser Repository Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠgetUser ( userId : ĠInt ): ĠSingle < User > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġjson Placeholder Network DataSource . getUser Dto ( userId ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. map ( user Dto To User Mapper :: map To Domain ) ĊĠĠĠ Ġ} Ċ }