|
|
|
@ -11,7 +11,7 @@ import kotlin.collections.ArrayList |
|
|
|
|
|
|
|
|
|
|
|
open class FilterComponent(var filterName : String = "", var sectionName: String = "") : RealmObject() { |
|
|
|
open class FilterComponent(var filterName : String = "", var sectionName: String = "") : RealmObject() { |
|
|
|
|
|
|
|
|
|
|
|
constructor(filterElementRows: ArrayList<FilterElementRow>) : this(filterElementRows.first().filterName, filterElementRows.first().sectionName) { |
|
|
|
constructor(filterElementRows: ArrayList<FilterElementRow>) : this(filterElementRows.first().filterName, filterElementRows.first().filterSectionRow.name) { |
|
|
|
this.ids = when (FilterType.valueOf(this.filterName)) { |
|
|
|
this.ids = when (FilterType.valueOf(this.filterName)) { |
|
|
|
FilterType.GAME -> { |
|
|
|
FilterType.GAME -> { |
|
|
|
RealmList<String>().apply { |
|
|
|
RealmList<String>().apply { |
|
|
|
@ -35,7 +35,7 @@ open class FilterComponent(var filterName : String = "", var sectionName: String |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
constructor(filterElementRow:FilterElementRow) : this(filterElementRow.filterName, filterElementRow.sectionName) { |
|
|
|
constructor(filterElementRow:FilterElementRow) : this(filterElementRow.filterName, filterElementRow.filterSectionRow.name) { |
|
|
|
when (filterElementRow) { |
|
|
|
when (filterElementRow) { |
|
|
|
is From -> date = filterElementRow.date |
|
|
|
is From -> date = filterElementRow.date |
|
|
|
is To -> date = filterElementRow.date |
|
|
|
is To -> date = filterElementRow.date |
|
|
|
|