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> ): 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

View File

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