vnorder / com.venuenext.vnorder.orders.data / GlobalItemRepository

GlobalItemRepository

class GlobalItemRepository

GlobalItemRepository VenueNext

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

Constructors

<init>

GlobalItemRepository VenueNext

GlobalItemRepository(context: Context)

Properties

context

var context: Context

globalItemDao

val globalItemDao: GlobalItemDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAllGlobalItems

fun deleteAllGlobalItems(): Deferred<Unit>

deleteGlobalItem

fun deleteGlobalItem(globalItemUUID: String): Deferred<Unit>

getGlobalItem

fun getGlobalItem(globalItemUUID: String): Deferred<GlobalItem>

insertGlobalItem

fun insertGlobalItem(globalItem: GlobalItem): Deferred<Unit>

insertGlobalItems

fun insertGlobalItems(globalItems: List<GlobalItem>): Deferred<Unit>