|
|
|
|
@ -8,6 +8,7 @@ import net.pokeranalytics.android.R |
|
|
|
|
import net.pokeranalytics.android.model.interfaces.DeleteValidityStatus |
|
|
|
|
import net.pokeranalytics.android.model.interfaces.NameManageable |
|
|
|
|
import net.pokeranalytics.android.ui.adapter.StaticRowRepresentableDataSource |
|
|
|
|
import net.pokeranalytics.android.ui.view.Localizable |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentableEditDescriptor |
|
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.SimpleRow |
|
|
|
|
@ -18,10 +19,19 @@ import kotlin.collections.ArrayList |
|
|
|
|
|
|
|
|
|
open class TransactionType : RealmObject(), NameManageable, StaticRowRepresentableDataSource, RowRepresentable { |
|
|
|
|
|
|
|
|
|
enum class Value(val additive: Boolean) { |
|
|
|
|
enum class Value(val additive: Boolean) : Localizable { |
|
|
|
|
WITHDRAWAL(false), |
|
|
|
|
DEPOSIT(true), |
|
|
|
|
BONUS(true) |
|
|
|
|
BONUS(true); |
|
|
|
|
|
|
|
|
|
override val resId: Int? |
|
|
|
|
get() { |
|
|
|
|
return when (this) { |
|
|
|
|
WITHDRAWAL -> R.string.withdrawal |
|
|
|
|
DEPOSIT -> R.string.deposit |
|
|
|
|
BONUS -> R.string.bonus |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
|
|