package Ġcom . mate us zk os l acz . mov iper . rx sample . viper . inter actor Ċ Ċ import Ġcom . jak ew h art on . ret rofit 2 . adapter . rx java 2 . Rx Java 2 Call Adapter Factory Ċ import Ġcom . mate us zk os l acz . mov iper . base . inter actor . Base Rx Interactor Ċ import Ġcom . mate us zk os l acz . mov iper . rx sample . data . ret rofit . GitHub Api Interface Ċ import Ġcom . mate us zk os l acz . mov iper . rx sample . viper . contract . UserDetails Contract Ċ import Ġcom . mate us zk os l acz . mov iper . rx sample . viper . entity . User Ċ import Ġio . reactivex . Observable Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . gson . Gson Converter Factory Ċ Ċ class ĠUser Details Interactor Ġ: ĠBase Rx Interactor (), ĠUser Details Contract . Interactor Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġm GitHub Api Interface : ĠGitHub Api Interface ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġretrofit Ġ= ĠRet rofit . Builder () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. baseUrl ( GitHub Api Interface . GITHUB _ API _ URL ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Converter Factory ( Gson Converter Factory . create ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Call Adapter Factory ( Rx Java 2 Call Adapter Factory . create ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠĠĠĠĠ Ġm GitHub Api Interface Ġ= Ġretrofit . create ( GitHub Api Interface :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetUser For Username ( user : ĠString ): ĠObservable < User > Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġm GitHub Api Interface . getUser For Username ( user ) Ċ } Ċ