|
|
|
|
@ -4,6 +4,34 @@ import net.pokeranalytics.android.R |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowViewType |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
|
|
sealed class FilterElement : RowRepresentable { |
|
|
|
|
class Cash : FilterElement() |
|
|
|
|
class Tournament : FilterElement() |
|
|
|
|
data class Game(val game: net.pokeranalytics.android.model.realm.Game) : FilterElement() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var value : Any? = null |
|
|
|
|
|
|
|
|
|
override val resId: Int? |
|
|
|
|
get() { |
|
|
|
|
return when (this) { |
|
|
|
|
is Cash -> R.string.cash_game |
|
|
|
|
is Tournament -> R.string.tournament |
|
|
|
|
else -> null |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override val viewType: Int |
|
|
|
|
get() { |
|
|
|
|
return when (this) { |
|
|
|
|
else -> RowViewType.TITLE_CHECK.ordinal |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
enum class FilterRow : RowRepresentable { |
|
|
|
|
|
|
|
|
|
// General |
|
|
|
|
|