vnorder / com.venuenext.vnorder.orders.data / InstructionRepository

InstructionRepository

class InstructionRepository

InstructionRepository VenueNext

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

Constructors

<init>

InstructionRepository VenueNext

InstructionRepository(context: Context)

Properties

context

var context: Context

instructionDao

val instructionDao: InstructionDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAllInstructions

fun deleteAllInstructions(): Deferred<Unit>

deleteInstruction

fun deleteInstruction(instructionUUID: String): Deferred<Unit>

getInstruction

fun getInstruction(instructionUUID: String): Deferred<Instruction>

insertInstruction

fun insertInstruction(instruction: Instruction): Deferred<Unit>

insertInstructions

fun insertInstructions(instructions: List<Instruction>): Deferred<Unit>