vnorder / com.venuenext.vnorder.orders.data / OrderItemRepository

OrderItemRepository

class OrderItemRepository

OrderItemRepository VenueNext

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

Constructors

<init>

OrderItemRepository VenueNext

OrderItemRepository(context: Context)

Properties

context

var context: Context

orderItemDao

val orderItemDao: OrderItemDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAllOrderItems

fun deleteAllOrderItems(): Deferred<Unit>

deleteOrderItem

fun deleteOrderItem(orderItemUUID: String): Deferred<Unit>

getOrderItem

fun getOrderItem(orderItemUUID: String): Deferred<OrderItem>

insertOrderItem

fun insertOrderItem(orderItem: OrderItem): Deferred<Unit>

insertOrderItems

fun insertOrderItems(orderItems: List<OrderItem>): Deferred<Unit>