vnorder / com.venuenext.vnorder.orders.data / LineItemModifierRepository

LineItemModifierRepository

class LineItemModifierRepository

LineItemModifierRepository VenueNext

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

Constructors

<init>

LineItemModifierRepository VenueNext

LineItemModifierRepository(context: Context)

Properties

context

var context: Context

modifierDao

val modifierDao: LineItemModifierDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteModifier

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

getModifiers

fun getModifiers(lineItemUUID: String): LiveData<List<LineItemModifier>>

insertModifier

fun insertModifier(modifier: LineItemModifier): Deferred<Unit>

insertModifiers

fun insertModifiers(modifiers: List<LineItemModifier>): Deferred<Unit>