package Ġa cademy . bang kit . lant ing . data . remote Ċ Ċ import Ġa cademy . bang kit . lant ing . Build Config Ċ import Ġokhttp 3 . Ok HttpClient Ċ import Ġokhttp 3 . logging . Http Logging Interceptor Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . gson . Gson Converter Factory Ċ Ċ object ĠRemote API Ġ{ ĊĠĠĠ Ġprivate Ġval Ġlogging Interceptor Ġ= ĊĠĠĠĠĠĠĠ ĠHttp Logging Interceptor (). setLevel ( Http Logging Interceptor . Level . BODY ) ĊĊĠĠĠ Ġprivate Ġval Ġclient Ġ= ĠOk HttpClient . Builder () ĊĠĠĠĠĠĠĠ Ġ. add Interceptor ( logging Interceptor ) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġprivate Ġval Ġretrofit Ġ= ĠRet rofit . Builder () ĊĠĠĠĠĠĠĠ Ġ. baseUrl ( Build Config . BASE _ URL ) ĊĠĠĠĠĠĠĠ Ġ. add Converter Factory ( Gson Converter Factory . create ()) ĊĠĠĠĠĠĠĠ Ġ. client ( client ) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġval ĠService : ĠAPI Service Ġ= Ġretrofit . create ( API Service :: class . java ) Ċ }