vnorder / com.venuenext.vnorder.stands.data / CategoryRepository

CategoryRepository

class CategoryRepository

CategoryRepository VenueNext

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

Constructors

<init>

CategoryRepository VenueNext

CategoryRepository(context: Context)

Properties

categoryDao

val categoryDao: CategoryDao

context

var context: Context

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAll

fun deleteAll(): Deferred<Unit>

deleteCategories

fun deleteCategories(categories: List<Category>): Deferred<Unit>

deleteCategory

fun deleteCategory(categoryUUID: String): Deferred<Unit>

getCategories

fun getCategories(menuUUID: String): Deferred<List<Category>>

getModifierCategories

fun getModifierCategories(menuUUID: String): Deferred<List<Category>>

insertCategories

fun insertCategories(categories: List<Category>): Deferred<Unit>

insertCategory

fun insertCategory(category: Category): Deferred<Unit>