From 8f822e946912246354ad5a61bffb74bec05c5c55 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 12 Sep 2024 13:57:07 +0200 Subject: [PATCH] Made properties overridable and variable --- .../client/model/securitiesaccount/Holding.kt | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/securitiesaccount/Holding.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/securitiesaccount/Holding.kt index 469439f2..237c6d73 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/securitiesaccount/Holding.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/securitiesaccount/Holding.kt @@ -7,45 +7,45 @@ import net.codinux.banking.client.model.config.NoArgConstructor @NoArgConstructor open class Holding( - val name: String, + open var name: String, - val isin: String? = null, - val wkn: String? = null, + open var isin: String? = null, + open var wkn: String? = null, - val quantity: Int? = null, - val currency: String? = null, + open var quantity: Int? = null, + open var currency: String? = null, /** * Gesamter Kurswert aller Einheiten des Wertpapiers */ - val totalBalance: Amount? = null, + open var totalBalance: Amount? = null, /** * Aktueller Kurswert einer einzelnen Einheit des Wertpapiers */ - val marketValue: Amount? = null, + open var marketValue: Amount? = null, /** * Änderung in Prozent Aktueller Kurswert gegenüber Einstandspreis. */ - val performancePercentage: Float? = null, + open var performancePercentage: Float? = null, /** * Gesamter Einstandspreis (Kaufpreis) */ - val totalCostPrice: Amount? = null, + open var totalCostPrice: Amount? = null, /** * (Durchschnittlicher) Einstandspreis/-kurs einer Einheit des Wertpapiers */ - val averageCostPrice: Amount? = null, + open var averageCostPrice: Amount? = null, /** * Zeitpunkt zu dem der Kurswert bestimmt wurde */ - val pricingTime: Instant? = null, + open var pricingTime: Instant? = null, - val buyingDate: LocalDate? = null, + open var buyingDate: LocalDate? = null, ) { - val identifier: String by lazy { "${isin}_$wkn" } + open val identifier: String by lazy { "${isin}_$wkn" } override fun toString() = "$name $totalBalance $currency" } \ No newline at end of file