vncore / com.venuenext.vncore.data / OrganizationRepository

OrganizationRepository

class OrganizationRepository

OrganizationRepository VenueNext

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

Constructors

<init>

OrganizationRepository VenueNext

OrganizationRepository(context: Context)

Properties

context

var context: Context

organizationDao

val organizationDao: OrganizationDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteOrganization

fun deleteOrganization(organizationUUID: String): Deferred<Unit>

getOrganization

fun getOrganization(organizationUUID: String): LiveData<Organization>

insertOrganization

fun insertOrganization(organization: Organization): Deferred<Unit>

insertOrganizations

fun insertOrganizations(organizations: List<Organization>): Deferred<Unit>