class LineItemRepository
LineItemRepository VenueNext
Created on 3/7/19. Copyright © 2019 VenueNext Inc. All rights reserved.
<init> |
LineItemRepository VenueNext LineItemRepository(context: Context) |
context |
var context: Context |
lineItemDao |
val lineItemDao: LineItemDao |
venueNextDB |
val venueNextDB: VenueNextDatabase |
count |
fun count(): Int |
deleteLineItem |
fun deleteLineItem(lineItemUUID: String): Deferred<Unit> |
deleteLineItemsForOrderUuid |
fun deleteLineItemsForOrderUuid(orderUUID: String): Deferred<Unit> |
getAllLineItems |
fun getAllLineItems(orderUUIDs: List<String>): MutableList<List<LineItem>> |
getLineItems |
fun getLineItems(orderUUID: String): LiveData<List<LineItem>> |
insertLineItem |
fun insertLineItem(lineItem: LineItem): Deferred<Unit> |
insertLineItems |
fun insertLineItems(lineItems: List<LineItem>): Deferred<Unit> |
insertLineItemsForOrder |
Takes in an Order object and loops through it's line items and sets each's orderUUID value to the passed in Order's UUID. fun insertLineItemsForOrder(order: Order?): Deferred<Unit> |