vnorder / com.venuenext.vnorder.seats.data / SeatRepository

SeatRepository

class SeatRepository

SeatRepository VenueNext

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

Constructors

<init>

SeatRepository VenueNext

SeatRepository(context: Context)

Properties

context

var context: Context

seatDao

val seatDao: SeatDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteSeat

fun deleteSeat(seatUUID: String): Deferred<Unit>

deleteSeats

fun deleteSeats(): Deferred<Unit>

getSeat

fun getSeat(): Deferred<Seat>

getSeats

fun getSeats(): LiveData<List<Seat>>

insertSeat

fun insertSeat(seat: Seat): Deferred<Unit>

insertSeats

fun insertSeats(seats: List<Seat>): Deferred<Unit>