SyncedResourceDao

interface SyncedResourceDao

Functions

Link copied to clipboard
abstract suspend fun getLastUpdate(resourceType: <ERROR CLASS>): String?

We will always have 1 entry for each ResourceType as it's the primary key, so we can limit the result to 1. If there is no entry for that ResourceType then null will be returned.

Link copied to clipboard
abstract suspend fun insert(entity: SyncedResourceEntity)
Link copied to clipboard
abstract suspend fun insertAll(resources: List<SyncedResourceEntity>)