mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-08 16:59:55 +00:00
Add: UpdateCategory Enum
This commit is contained in:
parent
e36375dcb1
commit
d51320cd2b
@ -178,6 +178,7 @@ interface ProductDao : BaseDao<Product> {
|
|||||||
): DataSource.Factory<Int, Product>
|
): DataSource.Factory<Int, Product>
|
||||||
|
|
||||||
// TODO optimize and simplify
|
// TODO optimize and simplify
|
||||||
|
// TODO add an UpdateCategory argument
|
||||||
fun queryList(
|
fun queryList(
|
||||||
installed: Boolean, updates: Boolean, searchQuery: String,
|
installed: Boolean, updates: Boolean, searchQuery: String,
|
||||||
section: Section, order: Order, numberOfItems: Int = 0
|
section: Section, order: Order, numberOfItems: Int = 0
|
||||||
|
@ -7,3 +7,9 @@ enum class Order(val titleResId: Int) {
|
|||||||
DATE_ADDED(R.string.whats_new),
|
DATE_ADDED(R.string.whats_new),
|
||||||
LAST_UPDATE(R.string.recently_updated)
|
LAST_UPDATE(R.string.recently_updated)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum class UpdateCategory(val id: Int) {
|
||||||
|
ALL(0),
|
||||||
|
UPDATED(1),
|
||||||
|
NEW(2)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user