mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-08 08:49: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>
|
||||
|
||||
// TODO optimize and simplify
|
||||
// TODO add an UpdateCategory argument
|
||||
fun queryList(
|
||||
installed: Boolean, updates: Boolean, searchQuery: String,
|
||||
section: Section, order: Order, numberOfItems: Int = 0
|
||||
|
@ -6,4 +6,10 @@ enum class Order(val titleResId: Int) {
|
||||
NAME(R.string.name),
|
||||
DATE_ADDED(R.string.whats_new),
|
||||
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