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,15 @@
package ru.vendetti.bitcoin_summarizer
import com.google.gson.annotations.SerializedName
// Обёртка для данных
data class GlobalResponse(
val data: GlobalData
)
// Сами данные
data class GlobalData(
@SerializedName("active_cryptocurrencies") val activeCryptocurrencies: String,
@SerializedName("total_market_cap_usd") val totalMarketCapUsd: String,
@SerializedName("total_24h_volume_usd") val total24hVolumeUsd: String
)