vncore / com.venuenext.vncore.data / DeviceRepository

DeviceRepository

class DeviceRepository

DeviceRepository VenueNext

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

Constructors

<init>

DeviceRepository VenueNext

DeviceRepository(context: Context)

Properties

context

var context: Context

deviceDao

val deviceDao: DeviceDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deleteDevice

fun deleteDevice(deviceUUID: String): Deferred<Unit>

getDevice

fun getDevice(deviceUUID: String): LiveData<Device>

insertDevice

fun insertDevice(device: Device): Deferred<Unit>

insertDevices

fun insertDevices(devices: List<Device>): Deferred<Unit>