vnorder / com.venuenext.vnorder.orders.data / UserItemRepository

UserItemRepository

class UserItemRepository

UserItemRepository VenueNext

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

Constructors

<init>

UserItemRepository VenueNext

UserItemRepository(context: Context)

Properties

context

var context: Context

userItemDao

val userItemDao: UserItemDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAllUserItems

fun deleteAllUserItems(): Deferred<Unit>

deleteUserItem

fun deleteUserItem(userItemUUID: String): Deferred<Unit>

getUserItem

fun getUserItem(userItemUUID: String): Deferred<UserItem>

insertUserItem

fun insertUserItem(userItem: UserItem): Deferred<Unit>

insertUserItems

fun insertUserItems(userItems: List<UserItem>): Deferred<Unit>