RecordRepository

class RecordRepository(context: Context)

Repository for RecordEntity

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
suspend fun cleanSynchronizedRecordsOlderThen(localDateTime: LocalDateTime)
Link copied to clipboard
Link copied to clipboard
suspend fun countAll(): Long
Link copied to clipboard
suspend fun countSynchronized(): Long
Link copied to clipboard
suspend fun delete(recordEntity: RecordEntity)
Link copied to clipboard
Link copied to clipboard
suspend fun getPeriodicalRecordsByLinkIdNotOlderThen(deviceCharacteristicLinkId: Long, localDateTime: LocalDateTime, periodDuration: Duration): List<RecordEntity>
Link copied to clipboard
suspend fun insert(recordEntity: RecordEntity): Long
Link copied to clipboard
suspend fun update(recordEntity: RecordEntity)