|
|
|
|
@ -46,9 +46,15 @@ sealed class FilterElementRow : RowRepresentable { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
open class QuantityFilterElementRow : FilterElementRow() |
|
|
|
|
open class QuantityFilterElementRow(var value: Double = 0.0) : FilterElementRow() |
|
|
|
|
open class TimeFilterElementRow : QuantityFilterElementRow() { |
|
|
|
|
var minutes = value.toInt() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
open class MoreFilterElementRow : QuantityFilterElementRow() |
|
|
|
|
open class LessFilterElementRow : QuantityFilterElementRow() |
|
|
|
|
open class MoreTimeFilterElementRow : TimeFilterElementRow() |
|
|
|
|
open class LessTimeFilterElementRow : TimeFilterElementRow() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data class Blind(var sb: Double? = null, var bb: Double? = null, var code: String? = null) : FilterElementRow() |
|
|
|
|
@ -67,10 +73,10 @@ sealed class FilterElementRow : RowRepresentable { |
|
|
|
|
data class AllTournamentFeature(val tournamentFeature: Manageable) : DataFilterElementRow(tournamentFeature) |
|
|
|
|
data class AnyTournamentFeature(val tournamentFeature: Manageable) : DataFilterElementRow(tournamentFeature) |
|
|
|
|
|
|
|
|
|
data class ResultMoreThan(var value: Double) : MoreFilterElementRow() |
|
|
|
|
data class ResultLessThan(var value: Double) : LessFilterElementRow() |
|
|
|
|
data class DurationMoreThan(var minutes: Int) : MoreFilterElementRow() |
|
|
|
|
data class DurationLessThan(var minutes: Int) : LessFilterElementRow() |
|
|
|
|
object ResultMoreThan : MoreFilterElementRow() |
|
|
|
|
object ResultLessThan : LessFilterElementRow() |
|
|
|
|
object DurationMoreThan : MoreTimeFilterElementRow() |
|
|
|
|
object DurationLessThan : LessTimeFilterElementRow() |
|
|
|
|
|
|
|
|
|
lateinit var filterSectionRow: FilterSectionRow |
|
|
|
|
|
|
|
|
|
@ -150,8 +156,8 @@ sealed class FilterElementRow : RowRepresentable { |
|
|
|
|
is Weekend -> R.string.weekend |
|
|
|
|
is PastDays -> R.string.period_in_days |
|
|
|
|
is Blind -> R.string.blinds |
|
|
|
|
is MoreFilterElementRow -> R.string.more_than |
|
|
|
|
is LessFilterElementRow -> R.string.less_than |
|
|
|
|
is MoreFilterElementRow, is MoreTimeFilterElementRow -> R.string.more_than |
|
|
|
|
is LessFilterElementRow, is LessTimeFilterElementRow -> R.string.less_than |
|
|
|
|
else -> null |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|