Ċ package Ġcom . example . android . dev byte viewer . network Ċ Ċ import Ġcom . jak ew h art on . ret rofit 2 . adapter . kotlin . coroutines . Coroutine Call Adapter Factory Ċ import Ġkotlinx . coroutines . Deferred Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . mos hi . M oshi Converter Factory Ċ import Ġretrofit 2 . http . GET Ċ Ċ interface ĠDev byte Service Ġ{ ĊĠĠĠ Ġ@ GET (" dev bytes ") ĊĠĠĠ Ġfun Ġget Playlist (): ĠDeferred < Network Video Container > Ċ } Ċ Ċ object ĠDev Byte Network Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġretrofit Ġ= ĠRet rofit . Builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. baseUrl (" https :// android - kotlin - fun - mars - server . app spot . com /") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Converter Factory ( M oshi Converter Factory . create ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Call Adapter Factory ( Coroutine Call Adapter Factory ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġval Ġdev bytes Ġ= Ġretrofit . create ( Dev byte Service :: class . java ) Ċ Ċ } ĊĊĊ