vnorder / com.venuenext.vnorder.stands.data / EventRepository

EventRepository

class EventRepository

EventRepository VenueNext

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

Constructors

<init>

EventRepository VenueNext

EventRepository(context: Context)

Properties

context

var context: Context

eventDao

val eventDao: EventDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAll

fun deleteAll(): Deferred<Unit>

deleteEvents

fun deleteEvents(events: List<Event>): Deferred<Unit>

getAllEvents

fun getAllEvents(): Deferred<List<Event>>

getEvents

fun getEvents(menuUUID: String): Deferred<List<Event>>

insertEvent

fun insertEvent(event: Event): Deferred<Unit>

insertEvents

fun insertEvents(events: List<Event>): Deferred<Unit>