RetrofitClient

Singleton object used to initialize webservice instances for api calls

Properties

Link copied to clipboard
val webService: Retrofit

Webservice instance used for api calls

Functions

Link copied to clipboard
fun webServiceWithCustomGson(customGson: Gson): Retrofit

Returns an instance of a webservice/retrofit client with a custom Gson instance

Link copied to clipboard
fun webServiceWithCustomUrl(baseUrl: String): Retrofit

Returns an instance of a webservice/retrofit client with a custom base url

Link copied to clipboard
fun webServiceWithCustomUrlAndGson(baseUrl: String, customGson: Gson): Retrofit

Returns an instance of a webservice/retrofit client with a custom base url and custom Gson

Link copied to clipboard
fun webServiceWithV3UrlAndGson(customGson: Gson): Retrofit

Custom method for deprecated modules