io.api.bloxy.model.dto.moneyflow.AddrTransfer.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.moneyflow
import com.beust.klaxon.Json
import io.api.bloxy.model.IModel
import io.api.bloxy.util.ParamConverter
/**
* ! NO DESCRIPTION !
*
* @author GoodforGod
* @since 18.11.2018
*/
data class AddrTransfer(
val direction: String = "",
val party: String = "",
val amount: Double = .0,
@Json(name = "tx_hash") val txHash: String = "",
@Json(name = "tx_time") val txTimeAsString: String = "",
@Json(name = "party_type") val partyType: String = "",
@Json(name = "token_symbol") val tokenSymbol: String = "",
@Json(name = "token_address") val tokenAddress: String = "",
@Json(name = "party_annotation") val partyAnnotation: String = ""
) : IModel {
@Json(ignored = true)
val txTime = ParamConverter.parseDateTime(txTimeAsString)
fun haveTxTime() : Boolean = txTime != null
override fun isEmpty(): Boolean {
return txHash.isEmpty() && txTimeAsString.isEmpty()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy