|
|
|
|
@ -33,12 +33,13 @@ enum class FilterSectionRow(override val resId: Int?) : RowRepresentable { |
|
|
|
|
PLAYERS_COUNT(R.string.players_count), |
|
|
|
|
TOURNAMENT_RE_BUY_COUNT(R.string.rebuy_count), |
|
|
|
|
ENTRY_FEE(R.string.buyin), |
|
|
|
|
MULTI_TABLING(R.string.multi_tabling), |
|
|
|
|
MULTI_TABLING(R.string.number_of_tables), |
|
|
|
|
VALUE(R.string.value), |
|
|
|
|
LOCATION(R.string.locations), |
|
|
|
|
BANKROLL(R.string.bankrolls), |
|
|
|
|
NUMBER_OF_PLAYERS(R.string.number_of_players), |
|
|
|
|
MULTI_PLAYER(R.string.multiplayer), |
|
|
|
|
NUMBER_OF_REBUY(R.string.number_of_buyins) |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
private enum class SelectionType { |
|
|
|
|
@ -89,14 +90,12 @@ enum class FilterSectionRow(override val resId: Int?) : RowRepresentable { |
|
|
|
|
|
|
|
|
|
// Cash |
|
|
|
|
BLIND -> Criteria.Blinds.queryConditions |
|
|
|
|
// CASH_RE_BUY_COUNT -> QueryCondition.moreOrLess<QueryCondition.Rebuy>() |
|
|
|
|
|
|
|
|
|
// Tournament |
|
|
|
|
TOURNAMENT_TYPE -> Criteria.TournamentTypes.queryConditions |
|
|
|
|
// COMPLETION_PERCENTAGE -> arrayListOf() |
|
|
|
|
// PLACE -> QueryCondition.moreOrLess<QueryCondition.NumberOfPlayer>() |
|
|
|
|
//PLACE -> QueryCondition.moreOrLess<QueryCondition.TournamentFinalPosition>() |
|
|
|
|
PLAYERS_COUNT -> QueryCondition.moreOrLess<QueryCondition.NumberOfPlayer>() |
|
|
|
|
// TOURNAMENT_RE_BUY_COUNT -> QueryCondition.moreOrLess<QueryCondition.BuyIn>() |
|
|
|
|
ENTRY_FEE -> Criteria.TournamentFees.queryConditions |
|
|
|
|
|
|
|
|
|
TOURNAMENT_NAME -> Criteria.TournamentNames.queryConditions |
|
|
|
|
@ -104,7 +103,8 @@ enum class FilterSectionRow(override val resId: Int?) : RowRepresentable { |
|
|
|
|
LOCATION -> Criteria.Locations.queryConditions |
|
|
|
|
BANKROLL -> Criteria.Bankrolls.queryConditions |
|
|
|
|
MULTI_TABLING -> QueryCondition.moreOrLess<QueryCondition.NumberOfTable>() |
|
|
|
|
// NUMBER_OF_PLAYERS -> QueryCondition.moreOrLess<QueryCondition.NumberOfPlayer>() |
|
|
|
|
NUMBER_OF_PLAYERS -> QueryCondition.moreOrLess<QueryCondition.NumberOfPlayer>() |
|
|
|
|
NUMBER_OF_REBUY -> QueryCondition.moreOrLess<QueryCondition.NumberOfRebuy>() |
|
|
|
|
// MULTI_PLAYER -> arrayListOf() |
|
|
|
|
|
|
|
|
|
VALUE -> arrayListOf<QueryCondition>().apply { |
|
|
|
|
|