package Ġcom . free port metrics . kotlin _ internal _ project . ret rofit Ċ Ċ import Ġcom . free port metrics . kotlin _ internal _ project . Build Config Ċ import Ġcom . free port metrics . kotlin _ internal _ project . model . Flight Ċ import Ġcom . free port metrics . kotlin _ internal _ project . model . Rocket Ċ import Ġcom . free port metrics . kotlin _ internal _ project . model . Event Ċ import Ġcom . jak ew h art on . ret rofit 2 . adapter . kotlin . coroutines . Coroutine Call Adapter Factory Ċ import Ġkotlinx . coroutines . Deferred Ċ import Ġretrofit 2 . Response Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . gson . Gson Converter Factory Ċ import Ġretrofit 2 . http . GET Ċ Ċ interface ĠSpace X Service Ġ{ ĊĊĠĠĠ Ġ@ GET (" rocket s ") ĊĠĠĠ Ġfun Ġget Rocket s Async (): ĠDeferred < Response < List < Rocket >>> ĊĊĠĠĠ Ġ@ GET (" la unches / up coming ") ĊĠĠĠ Ġfun ĠgetNext Fl ights Async (): ĠDeferred < Response < List < Flight >>> ĊĊĠĠĠ Ġ@ GET (" history ") ĊĠĠĠ Ġfun Ġget Past Events Async (): ĠDeferred < Response < List < Event >>> ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġcreate (): ĠSpace X Service Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠRet rofit . Builder () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. baseUrl ( Build Config . SP AC EX _ API _ URL ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Converter Factory ( Gson Converter Factory . create ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Call Adapter Factory ( Coroutine Call Adapter Factory ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. create ( Space X Service :: class . java ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }