package Ġmy . com . code play . training . weather app _ v 2 . remote Ċ Ċ import Ġcom . squareup . mos hi . M oshi Ċ import Ġcom . squareup . mos hi . kotlin . reflect . Kotlin Json Adapter Factory Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . mos hi . M oshi Converter Factory ĊĊ Ċ object ĠRet rofit Service Manager Ġ{ ĊĠĠĠ Ġprivate Ġconst Ġval ĠbaseUrl Ġ= Ġ" https :// api . open weather map . org " ĊĊĠĠĠ Ġprivate Ġval Ġm oshi Ġ= ĠM oshi . Builder () ĊĠĠĠĠĠĠĠ Ġ. add ( Kotlin Json Adapter Factory ()) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġprivate Ġval Ġbuilder Ġ= ĠRet rofit . Builder () ĊĠĠĠĠĠĠĠ Ġ. add Converter Factory ( M oshi Converter Factory . create ( mos hi )) ĊĠĠĠĠĠĠĠ Ġ. baseUrl ( baseUrl ) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġval Ġweather Service Ġ: ĠWeather Service Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ Ġbuilder . create ( Weather Service :: class . java ) ĊĠĠĠ Ġ} Ċ }