vnorder / com.venuenext.vnorder.stands.data / MenuRepository

MenuRepository

class MenuRepository

MenuRepository VenueNext

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

Constructors

<init>

MenuRepository VenueNext

MenuRepository(context: Context)

Properties

context

var context: Context

menuDao

val menuDao: MenuDao

menuService

val menuService: MenuService

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAll

fun deleteAll(): Deferred<Unit>

deleteMenus

fun deleteMenus(menus: List<Menu>): Deferred<Unit>

fetchMenuItems

fun fetchMenuItems(menu: Menu): Deferred<GetMenuItemsResult?>

getMenu

fun getMenu(standUUID: String): Deferred<Menu>

getMenus

fun getMenus(): Deferred<List<Menu>>

getMenusByProductType

fun getMenusByProductType(productType: String): Deferred<List<Menu>>

insertMenu

fun insertMenu(menu: Menu): Deferred<Unit>

insertMenus

fun insertMenus(menus: List<Menu>): Deferred<Unit>