io.api.bloxy.model.dto.address.CoinBalance.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bloxy-api Show documentation
Show all versions of bloxy-api Show documentation
Kotlin & Java Library for all available Bloxy API endpoints
package io.api.bloxy.model.dto.address
import com.beust.klaxon.Json
import io.api.bloxy.model.IModel
/**
* ! NO DESCRIPTION !
*
* @author GoodforGod
* @since 17.11.2018
*/
data class CoinBalance(
val symbol: String = "",
@Json(name = "sent_txs") val sentTxs: Long = 0,
@Json(name = "sent_amount") val sentAmount: Double = .0,
@Json(name = "received_txs") val receivedTxs: Long = 0,
@Json(name = "token_address") val tokenAddress: String = "",
@Json(name = "received_amount") val receivedAmount: Double = .0,
val balance: Double = .0
) : IModel {
fun isEth(): Boolean = "ETH" == symbol
override fun isEmpty(): Boolean = symbol.isEmpty() && tokenAddress.isEmpty()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy