All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.api.bloxy.model.dto.moneyflow.Sender.kt Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package io.api.bloxy.model.dto.moneyflow

import com.beust.klaxon.Json
import io.api.bloxy.model.IAddressModel
import io.api.bloxy.model.IModel
import io.api.bloxy.model.dto.AddressType


/**
 * ! NO DESCRIPTION !
 *
 * @author GoodforGod
 * @since 18.11.2018
 */
data class Sender(
    val sender: String = "",
    @Json(name = "sender_type")
    val typeAsString: String = "",
    val amount: Double = .0,
    val transactions: Long = 0,
    val annotation: String = ""
) : IModel, IAddressModel {

    override val addrType: AddressType = AddressType.parse(typeAsString)

    override fun isEmpty(): Boolean {
        return sender.isEmpty() && transactions == 0L
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy