DocumentUpdate

interface DocumentUpdate

Repository responsible for saving the document updates.

Functions

Link copied to clipboard
abstract suspend fun saveDocument(document: Document)

Saves the whole document

Link copied to clipboard
abstract suspend fun saveDocumentMetadata(document: Document)

Saves the meta data of the document. Content is not saved.

Link copied to clipboard
abstract suspend fun saveStoryStep(storyStep: StoryStep, position: Int, documentId: String)

Saves of StoryStep of a document

Link copied to clipboard
abstract suspend fun updateStoryStep(storyStep: StoryStep, position: Int, documentId: String)

Updates one StoryStep of a document.