vnorder / com.venuenext.vnorder.orders.data / MerchantRepository

MerchantRepository

class MerchantRepository

MerchantRepository VenueNext

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

Constructors

<init>

MerchantRepository VenueNext

MerchantRepository(context: Context)

Properties

context

var context: Context

merchantDao

val merchantDao: MerchantDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAllMerchants

fun deleteAllMerchants(): Deferred<Unit>

deleteMerchant

fun deleteMerchant(merchantUUID: String): Deferred<Unit>

getMerchant

fun getMerchant(merchantUUID: String): Deferred<Merchant>

insertMerchant

fun insertMerchant(merchant: Merchant): Deferred<Unit>

insertMerchants

fun insertMerchants(merchants: List<Merchant>): Deferred<Unit>