package Ġcom . mega ul order . im anan ji . api Ċ Ċ import Ġretrofit 2 . Response Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . gson . Gson Converter Factory Ċ import Ġretrofit 2 . http . GET Ċ Ċ sealed Ġinterface ĠTime Api Ġ{ ĊĊ ĉ @ GET (" api / ip ") Ċ ĉ suspend Ġfun ĠgetTime (): ĠResponse < Time Data > ĊĊ ĉ comp anion Ġobject Ġ{ ĊĊĉ ĉ var ĠBASE _ URL Ġ= Ġ" https :// world time api . org /" ĊĊĉ ĉ fun Ġcreate (): ĠTime Api Ġ{ Ċĉĉ ĉ val Ġretrofit Ġ= ĠRet rofit . Builder () Ċĉĉĉ ĉ . add Converter Factory ( Gson Converter Factory . create ()) Ċĉĉĉ ĉ . baseUrl ( BASE _ URL ) Ċĉĉĉ ĉ . build () ĊĊĉĉ ĉ return Ġretrofit . create ( Time Api :: class . java ) Ċĉ ĉ } Ċ ĉ } Ċ } Ċ