Created
March 3, 2018 02:42
-
-
Save cdmunoz/b69e7f4aa9cd8cebc9900b850746c4e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity( | |
tableName = "cryptocurrency" | |
) | |
data class Cryptocurrency( | |
@Json(name = "id") | |
@PrimaryKey | |
val id: Int, | |
@Json(name = "name") | |
val name: String? = null, | |
@Json(name = "symbol") | |
val symbol: String = "", | |
@Json(name = "rank") | |
val rank: String? = null, | |
@Json(name = "price_usd") | |
val priceUsd: String = "", | |
@Json(name = "price_btc") | |
val priceBtc: String = "", | |
@Json(name = "24h_volume_usd") | |
val jsonMember24hVolumeUsd: String = "", | |
@Json(name = "market_cap_usd") | |
val marketCapUsd: String = "", | |
@Json(name = "available_supply") | |
val availableSupply: String = "", | |
@Json(name = "total_supply") | |
val totalSupply: String = "", | |
@Json(name = "max_supply") | |
val maxSupply: String = "", | |
@Json(name = "percent_change_1h") | |
val percentChange1h: String = "", | |
@Json(name = "percent_change_24h") | |
val percentChange24h: String = "", | |
@Json(name = "percent_change_7d") | |
val percentChange7d: String = "", | |
@Json(name = "last_updated") | |
val lastUpdated: Long = 0 | |
) : Serializable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment