vnorder / com.venuenext.vnorder.experience.data / RedeemedExperienceRepository

RedeemedExperienceRepository

class RedeemedExperienceRepository

Constructors

<init>

RedeemedExperienceRepository(context: Context)

Properties

context

val context: Context

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteAllRedeemedExperiences

fun deleteAllRedeemedExperiences(): Deferred<Unit>

deleteRedeemedExperience

fun deleteRedeemedExperience(redeemedExperienceId: String): Deferred<Unit>

getRedeemedExperience

fun getRedeemedExperience(redeemedExperienceId: String): Deferred<RedeemedExperience>

getRedeemedExperiencesForOrder

fun getRedeemedExperiencesForOrder(orderUUID: String): Deferred<List<RedeemedExperience>>

insertRedeemedExperience

fun insertRedeemedExperience(redeemedExperience: RedeemedExperience): Deferred<Unit>

insertRedeemedExperiences

fun insertRedeemedExperiences(redeemedExperiences: List<RedeemedExperience>): Deferred<Unit>