Implemented toString()
This commit is contained in:
parent
9c63394922
commit
bc7733f618
|
@ -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"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -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"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue