This commit is contained in:
2025-03-04 00:05:15 +05:00
parent 3142cd79f6
commit e6e9d7e082
3 changed files with 6 additions and 12 deletions

View File

@ -2,14 +2,10 @@ 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("active_currencies") val activeCryptocurrencies: String,
@SerializedName("total_market_cap_usd") val totalMarketCapUsd: String,
@SerializedName("total_24h_volume_usd") val total24hVolumeUsd: String
@SerializedName("total_24h_volume_usd") val total24hVolumeUsd: String,
@SerializedName("bitcoin_percentage_of_market_cap") val bitcoinPercentageOfMarketCap: String
)