package Ġcom . cap stone . vable . service Ċ Ċ import Ġokhttp 3 . Ok HttpClient Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . gson . Gson Converter Factory Ċ import Ġretrofit 2 . converter . scal ars . Scalars Converter Factory Ċ import Ġjava . util . concurrent . TimeUnit Ċ Ċ object ĠNet Ret rofit Ġ{ ĊĊĠ Ġprivate Ġvar Ġok HttpClient Ġ= ĠOk HttpClient ĊĠĠĠ Ġ. Builder () ĊĠĠĠ Ġ. connect Timeout ( 6 0 , ĠTimeUnit . SECONDS ) ĊĠĠĠ Ġ. read Timeout ( 6 0 , ĠTimeUnit . SECONDS ) ĊĠĠĠ Ġ. write Timeout ( 6 0 , ĠTimeUnit . SECONDS ) ĊĠĠĠ Ġ. build () ĊĊĠ Ġvar Ġretrofit Ġ= ĠRet rofit ĊĠĠĠ Ġ. Builder () ĊĠĠĠ Ġ. client ( ok HttpClient ) Ċ // ĠĠĠ Ġ. baseUrl (" http :// 1 9 2 . 1 6 8 . 1 0 . 2 1 2 : 8 0 8 0 ") ĊĠĠĠ Ġ. baseUrl (" https :// cap stone - w isoft . ml ") ĊĠĠĠ Ġ. add Converter Factory ( Scalars Converter Factory . create ()) ĊĠĠĠ Ġ. add Converter Factory ( Gson Converter Factory . create ()) !! Ċ }