mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-19 16:45:20 +01:00
Added tranlators
This commit is contained in:
parent
c2bc78e7ea
commit
369411ffc6
10 changed files with 147 additions and 22 deletions
|
@ -24,13 +24,12 @@ object LastFmClient {
|
|||
}
|
||||
|
||||
init {
|
||||
val retrofit = Retrofit.Builder()
|
||||
lastFMService = Retrofit.Builder()
|
||||
.baseUrl(baseUrl)
|
||||
.callFactory(createDefaultOkHttpClientBuilder().build())
|
||||
.addConverterFactory(GsonConverterFactory.create(Gson()))
|
||||
.build()
|
||||
|
||||
lastFMService = retrofit.create(LastFMService::class.java)
|
||||
.create(LastFMService::class.java)
|
||||
}
|
||||
|
||||
private fun createDefaultOkHttpClientBuilder(): OkHttpClient.Builder {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue