RoomDocumentRepository

class RoomDocumentRepository(documentEntityDao: DocumentEntityDao, storyUnitEntityDao: StoryUnitEntityDao) : DocumentRepository

Constructors

Link copied to clipboard
constructor(documentEntityDao: DocumentEntityDao, storyUnitEntityDao: StoryUnitEntityDao)

Functions

Link copied to clipboard
open suspend override fun deleteByUserId(userId: String)
Link copied to clipboard
open suspend override fun deleteDocument(document: Document)
Link copied to clipboard
open suspend override fun deleteDocumentByIds(ids: Set<String>)
Link copied to clipboard
open suspend override fun loadDocumentById(id: String): Document?
Link copied to clipboard
open suspend override fun loadDocumentsForUser(orderBy: String, userId: String): List<Document>
Link copied to clipboard
open suspend override fun loadDocumentsWithContentByIds(ids: List<String>, orderBy: String): List<Document>
Link copied to clipboard
open suspend override fun moveDocumentsToNewUser(oldUserId: String, newUserId: String)
Link copied to clipboard
open suspend override fun saveDocument(document: Document)
Link copied to clipboard
open suspend override fun saveDocumentMetadata(document: Document)
Link copied to clipboard
open suspend override fun saveStoryStep(storyStep: StoryStep, position: Int, documentId: String)
Link copied to clipboard
open suspend override fun updateStoryStep(storyStep: StoryStep, position: Int, documentId: String)