io.api.bloxy.model.dto.Address.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
import com.beust.klaxon.Json
import io.api.bloxy.model.IAddressModel
import io.api.bloxy.model.IModel
/**
* ! NO DESCRIPTION !
*
* @author GoodforGod
* @since 18.11.2018
*/
data class Address(
val address: String = "",
@Json(name = "address_type")
val typeAsString: String = "",
val amount: Double = .0,
val annotation: String = ""
) : IModel, IAddressModel {
override val addrType: AddressType = AddressType.parse(typeAsString)
override fun isEmpty(): Boolean {
return address.isEmpty()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy