vnorder / com.venuenext.vnorder.orders.data / CartEntryRepository

CartEntryRepository

class CartEntryRepository

CartEntryRepository VenueNext

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

Constructors

<init>

CartEntryRepository VenueNext

CartEntryRepository(context: Context)

Properties

cartEntryDao

val cartEntryDao: CartEntryDao

context

var context: Context

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAllCartEntries

fun deleteAllCartEntries(): Deferred<Unit>

deleteCartEntry

fun deleteCartEntry(cartEntryUUID: String): Deferred<Unit>

getCartEntries

fun getCartEntries(cartUUID: String): Deferred<List<CartEntry>>

insertCartEntries

fun insertCartEntries(cartEntrys: List<CartEntry>): Deferred<Unit>

insertCartEntry

fun insertCartEntry(cartEntry: CartEntry): Deferred<Unit>