Data classes and other retrofit logic added

This commit is contained in:
2025-03-03 21:25:17 +05:00
parent c0d5908a6e
commit 821162964b
30 changed files with 190 additions and 12 deletions

View File

@ -0,0 +1,16 @@
package ru.vendetti.bitcoin_summarizer
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object RetrofitClient {
private const val BASE_URL = "https://api.alternative.me/"
val apiService: CryptoApiService by lazy {
Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build()
.create(CryptoApiService::class.java)
}
}