vnorder / com.venuenext.vnorder.stands.data / ItemRepository

ItemRepository

class ItemRepository

ItemRepository VenueNext

Created on 3/7/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Constructors

<init>

ItemRepository VenueNext

ItemRepository(context: Context)

Properties

context

var context: Context

itemDao

val itemDao: ItemDao

menuService

val menuService: MenuService

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAll

fun deleteAll(): Deferred<Unit>

deleteItem

fun deleteItem(itemUUID: String): Deferred<Unit>

deleteItems

fun deleteItems(items: List<Item>): Deferred<Unit>

fetchMenuItem

fun fetchMenuItem(item: Item): Deferred<Item?>

getItem

fun getItem(itemUUID: String): Deferred<Item?>

getItems

fun getItems(menuUUID: String): Deferred<List<Item>>

getModifierItems

fun getModifierItems(modifierGroupUUID: String): Deferred<List<Item>>

insertItem

fun insertItem(item: Item): Deferred<Unit>

insertItems

fun insertItems(items: List<Item>): Deferred<Unit>