vnorder / com.venuenext.vnorder.orders.data / TotalRepository

TotalRepository

class TotalRepository

TotalRepository VenueNext

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

Constructors

<init>

TotalRepository VenueNext

TotalRepository(context: Context)

Properties

context

var context: Context

totalDao

val totalDao: TotalDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteTotal

fun deleteTotal(totalUUID: String): Deferred<Unit>

getTotals

fun getTotals(orderUUID: String): LiveData<List<Total>>

insertTotal

fun insertTotal(total: Total): Deferred<Unit>

insertTotals

fun insertTotals(totals: List<Total>): Deferred<Unit>