vncore / com.venuenext.vncore.data / VenueRepository

VenueRepository

class VenueRepository

VenueRepository VenueNext

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

Constructors

<init>

VenueRepository VenueNext

VenueRepository(context: Context)

Properties

context

var context: Context

venueDao

val venueDao: VenueDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteVenue

fun deleteVenue(venueUUID: String): Deferred<Unit>

getVenue

fun getVenue(venueUUID: String): LiveData<Venue>

insertVenue

fun insertVenue(venue: Venue): Deferred<Unit>

insertVenues

fun insertVenues(venues: List<Venue>): Deferred<Unit>