//library/ss_n.common_ktx.extension/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
Service interface class Instance
androidJvm
T | Service interface class |
service | Service interface class |
client | OkHttpClient :default HttpClient |
converterFactory | Json Parser Converter Factory :default MoshiConverterFactory |