23 lines
763 B
Kotlin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package ru.vendetti.bitcoin_summarizer
import com.google.gson.annotations.SerializedName
// Обёртка для данных (тут вложенность есть и это API v2, а не v1, поэтому чуть сложнее структура, чем в GlobalResponse.kt)
data class FearAndGreedResponse(
@SerializedName("name")
val name: String,
@SerializedName("data")
val dataList: List<FearAndGreedData>
)
// Сами данные
data class FearAndGreedData(
@SerializedName("value")
val value: String,
@SerializedName("value_classification")
val valueClassification: String,
@SerializedName("timestamp")
val timestamp: String,
@SerializedName("time_until_update")
val timeUntilUpdate: String
)