From 3cc4c06e6ae6fe43130682804d46105ecd0cf8a2 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 5 Sep 2018 20:23:38 +0800 Subject: [PATCH] add history into mutable psychomatrix --- .../PsychomatrixBase/domain/entities/MutablePsychomatrix.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/MutablePsychomatrix.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/MutablePsychomatrix.kt index d9fcee9..5a83acd 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/MutablePsychomatrix.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/MutablePsychomatrix.kt @@ -15,6 +15,9 @@ class MutablePsychomatrix(date: DateTime) : Psychomatrix(date) { private val mutableOperationsHistory: MutableList = ArrayList() + val operationsHistory: List + get() = mutableOperationsHistory + val availableOperations: Deferred> get() = async { availableConverts.await().plus(availableInverts.await())