package Ġru . ve g ax . x avier . ser p . main Ċ Ċ import Ġcom . google . gson . Gson Builder Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . adapter . rx java 2 . Rx Java 2 Call Adapter Factory Ċ import Ġretrofit 2 . converter . gson . Gson Converter Factory Ċ import Ġru . ve g ax . x avier . ser p . ret rofit 2 . One Two Trip Api ĊĊ Ċ object ĠOne Two Trip ApiService Factory Ġ{ ĊĊĠĠĠ Ġfun Ġcreate Service (): ĠOne Two Trip Api Ġ= ĠRet rofit . Builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. baseUrl (" https :// api . my json . com / bins /") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Converter Factory ( Gson Converter Factory . create ( Gson Builder (). create ())) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Call Adapter Factory ( Rx Java 2 Call Adapter Factory . create ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create ( One Two Trip Api :: class . java ) Ċ Ċ }