common-ktx

//library/ss_n.common_ktx.extension/createRetrofitService

createRetrofitService

[androidJvm]
fun <T> String.createRetrofitService(service: Class<T>, client: OkHttpClient? = HttpClient.defaultClient, converterFactory: Converter.Factory? = MoshiConverterFactory.create( Builder().add(KotlinJsonAdapterFactory()).build() )): T

Create Retrofit Service

Return

Service interface class Instance

Parameters

androidJvm

   
T Service interface class
service Service interface class
client OkHttpClient :default HttpClient
converterFactory Json Parser Converter Factory :default MoshiConverterFactory