vnorder / com.venuenext.vnorder.stands.data / ModifierGroupRepository

ModifierGroupRepository

class ModifierGroupRepository

ModifierGroupRepository VenueNext

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

Constructors

<init>

ModifierGroupRepository VenueNext

ModifierGroupRepository(context: Context)

Properties

context

var context: Context

modifierGroupDao

val modifierGroupDao: ModifierGroupDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAll

fun deleteAll(): Deferred<Unit>

deleteModifierGroup

fun deleteModifierGroup(modifierUUID: String): Deferred<Unit>

getModifierGroup

fun getModifierGroup(modifierUUID: String): Deferred<ModifierGroup>

getModifierGroups

fun getModifierGroups(itemUUID: String): Deferred<List<ModifierGroup>>

insertModifierGroup

fun insertModifierGroup(modifierGroup: ModifierGroup): Deferred<Unit>

insertModifierGroups

fun insertModifierGroups(modifierGroups: List<ModifierGroup>): Deferred<Unit>