package Ġcom . d mc . sw . framework . api Ċ Ċ import Ġcom . d mc . core . data . Movie Remote DataSource Ċ import Ġcom . d mc . core . domain . Movie Ċ import Ġcom . d mc . core . domain . Movie Character Ċ import Ġcom . d mc . sw . framework . api . response . to Movie Ċ import Ġcom . d mc . sw . framework . api . response . to Movie Character Ċ Ċ class ĠApi Movie DataSource Ġ: ĠMovie Remote DataSource Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġapi Service Ġ= ĠRet rofit Factory . make Ret rofit Service () ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġget Movies (): ĠList < Movie > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= Ġapi Service . get Movies () ĊĠĠĠĠĠĠĠ Ġreturn Ġresponse . results . map Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . to Movie () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġget Movie Character ( url : ĠString ): ĠMovie Character Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcharacter Ġ= Ġapi Service . get Character ( url ) ĊĠĠĠĠĠĠĠ Ġreturn Ġcharacter . to Movie Character () ĊĊĠĠĠ Ġ} Ċ }