create Reactive Service

fun <S> createReactiveService(    serviceClass: Class<S>,     okhttpClient: OkHttpClient,     baseURl: String): S

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

Sources

Link copied to clipboard