Implemented toString()

This commit is contained in:
dankito 2021-04-18 20:12:18 +02:00
parent 9c63394922
commit bc7733f618
2 changed files with 10 additions and 0 deletions

View File

@ -30,4 +30,9 @@ open class RetrievedAccountData(
} }
override fun toString(): String {
return "Was retrieving AccountData for ${account.accountIdentifier} successful? $successfullyRetrievedData. Balance = ${balance}, ${bookedTransactions.size} transactions"
}
} }

View File

@ -23,4 +23,9 @@ open class GetTransactionsResponse(
get() = super.errorMessage get() = super.errorMessage
?: retrievedData.mapNotNull { it.errorMessage }.firstOrNull() ?: retrievedData.mapNotNull { it.errorMessage }.firstOrNull()
override fun toString(): String {
return super.toString() + ": Retrieved data: $retrievedData"
}
} }