|
|
|
|
@ -174,9 +174,9 @@ open class FilterCondition() : RealmObject() { |
|
|
|
|
*/ |
|
|
|
|
fun getFilterConditionValue(filterElementRow: FilterElementRow): Any? { |
|
|
|
|
return when (filterElementRow) { |
|
|
|
|
is From, is To -> date |
|
|
|
|
is From, is To -> dateValue //TODO: Probably change by 'date' (doesn't work now because the value isn't correctly saved |
|
|
|
|
is PastDays -> values |
|
|
|
|
else -> throw PokerAnalyticsException.FilterElementTypeMissing |
|
|
|
|
else -> throw PokerAnalyticsException.FilterElementTypeMissing(filterElementRow) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|