From 6ea4692e260b396bc145217a4d33cbb8741e1dec Mon Sep 17 00:00:00 2001 From: dankl Date: Mon, 13 Jan 2020 00:16:01 +0100 Subject: [PATCH] Added iconUrl to constructor --- .../src/main/java/net/dankito/banking/ui/model/Bank.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/Bank.kt b/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/Bank.kt index 2be70a5f..4defd9b5 100644 --- a/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/Bank.kt +++ b/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/Bank.kt @@ -1,11 +1,12 @@ package net.dankito.banking.ui.model -open class Bank( +open class Bank @JvmOverloads constructor( val bankCode: String, var finTsServerAddress: String, var bic: String, - var name: String + var name: String, + var iconUrl: String? = null ) { @@ -15,8 +16,6 @@ open class Bank( val displayName: String get() = name - var iconUrl: String? = null - override fun toString(): String { return "$name ($bankCode)"