vnorder / com.venuenext.vnorder.stands.data / VariantSaleRepository

VariantSaleRepository

class VariantSaleRepository

VariantRepository VenueNext

Created on 8/29/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Constructors

<init>

VariantRepository VenueNext

VariantSaleRepository(context: Context)

Properties

context

var context: Context

variantSaleDao

val variantSaleDao: VariantSaleDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteVariantSale

fun deleteVariantSale(variantSaleId: String): Deferred<Unit>

getVariantSale

fun getVariantSale(variantSaleId: String): Deferred<VariantSale>

insertVariantSale

fun insertVariantSale(variant: VariantSale): Deferred<Unit>

insertVariantSales

fun insertVariantSales(variants: List<VariantSale>): Deferred<Unit>