vnorder / com.venuenext.vnorder.stands.data / StandRepository

StandRepository

class StandRepository

Constructors

<init>

StandRepository(context: Context)

Properties

context

var context: Context

standDao

val standDao: StandDao

standService

val standService: StandService

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAll

fun deleteAll(): Deferred<Unit>

deleteStand

fun deleteStand(standUUID: String): Deferred<Unit>

deleteStands

fun deleteStands(stands: List<Stand>): Deferred<Unit>

fetchStands

fun fetchStands(): Deferred<GetStandResult?>

getStand

fun getStand(standUUID: String): Deferred<Stand>

getStandAvailability

fun getStandAvailability(stand: Stand): Deferred<Map<String, List<TimeSlot>?>?>

getStandMenus

fun getStandMenus(): Deferred<List<Stand>>

getStandMenusByProductType

fun getStandMenusByProductType(productType: String): Deferred<List<Stand>>

getStands

fun getStands(): Deferred<List<Stand>>

insertStand

fun insertStand(stand: Stand): Deferred<Unit>

insertStands

fun insertStands(stands: List<Stand>): Deferred<Unit>