package Ġma . sd op . weather app . data . database Ċ Ċ import Ġma . sd op . weather app . domain . model . Forecast Ċ import Ġma . sd op . weather app . domain . model . Forecast List Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġpar k jo os ung Ġon Ġ 2 0 1 7 . Ġ 4 . Ġ 2 5 .. Ċ Ġ*/ Ċ class ĠDb Data Mapper Ġ{ ĊĠĠĠ Ġfun ĠconvertTo Domain ( forecast : ĠCity Forecast ) Ġ= Ġwith ( forecast ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdaily Ġ= Ġdaily Forecast . map Ġ{ Ġconvert Day To Domain ( it ) Ġ} ĊĠĠĠĠĠĠĠ ĠFore cast List (_ id , Ġcity , Ġcountry , Ġdaily ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġconvert Day To Domain ( day Forecast : ĠDay Forecast ) Ġ= Ġwith ( day Forecast ) Ġ{ ĊĠĠĠĠĠĠĠ ĠFore cast (_ id , Ġdate , Ġdescription , Ġhigh , Ġlow , Ġicon Url ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġconvert From Domain ( forecast : ĠFore cast List ) Ġ= Ġwith ( forecast ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdaily Ġ= Ġdaily Forecast . map Ġ{ Ġconvert Day From Domain ( id , Ġit ) Ġ} ĊĠĠĠĠĠĠĠ ĠCity Forecast ( id , Ġcity , Ġcountry , Ġdaily ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġconvert Day From Domain ( city Id : ĠLong , Ġforecast : ĠFore cast ) Ġ= Ġwith ( forecast ) Ġ{ ĊĠĠĠĠĠĠĠ ĠDay Forecast ( date , Ġdescription , Ġhigh , Ġlow , Ġicon Url , Ġcity Id ) ĊĠĠĠ Ġ} Ċ }