io.api.bloxy.model.dto.tokensale.SaleWallet.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.tokensale
import com.beust.klaxon.Json
import io.api.bloxy.model.IModel
import io.api.bloxy.model.ITokenModel
import io.api.bloxy.model.dto.TokenType
/**
* ! NO DESCRIPTION !
*
* @author GoodforGod
* @since 18.11.2018
*/
data class SaleWallet(
val symbol: String = "",
val transactions: Long = 0,
@Json(name = "token_type") val typeAsString: String = "",
@Json(name = "eth_amount") val ethAmount: Double = .0,
@Json(name = "token_address") val tokenAddress: String = "",
@Json(name = "token_amount") val tokenAmount: Double = .0,
@Json(name = "token_buyers") val tokenBuyers: Int = 0
) : IModel, ITokenModel {
override val tokenType: TokenType = TokenType.parse(typeAsString)
override fun isEmpty(): Boolean {
return tokenAddress.isEmpty() && symbol.isEmpty() && transactions == 0L && tokenBuyers == 0
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy