vnorder / com.venuenext.vnorder.stands.data / VariantRepository

VariantRepository

class VariantRepository

VariantRepository VenueNext

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

Constructors

<init>

VariantRepository VenueNext

VariantRepository(context: Context)

Properties

context

var context: Context

variantDao

val variantDao: VariantDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteVariant

fun deleteVariant(variantUUID: String): Deferred<Unit>

getVariants

fun getVariants(itemUUID: String): Deferred<List<Variant>>

insertVariant

fun insertVariant(variant: Variant): Deferred<Unit>

insertVariants

fun insertVariants(variants: List<Variant>): Deferred<Unit>