Add: UpdateCategory Enum

This commit is contained in:
machiav3lli 2022-02-01 02:41:52 +01:00
parent e36375dcb1
commit d51320cd2b
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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)
}