create
Reactive
Service
fun <S> createReactiveService( serviceClass: Class<S>, okhttpClient: OkHttpClient, baseURl: String): S
Content copied to clipboard
Method to create reactive Service with Retrofit
Return
instance of S used for interacting with web service
Parameters
serviceClass
the class service to create
okhttpClient
okHttpClient, with defined header
baseURl
Base Url for endpoint