LastEdit

sealed class LastEdit

Last edition. This signs how the last edition in the Document was made and it allows the SDK to react properly, for example saving just one line of change instead saving the whole document.

Inheritors

Types

Link copied to clipboard
data class InfoEdition(val position: Int, val storyStep: StoryStep) : LastEdit
Link copied to clipboard
data class LineEdition(val position: Int, val storyStep: StoryStep) : LastEdit

A edition in the line was made, but the positions were not affected. In this case it is possible to update just one line.

Link copied to clipboard
object Nothing : LastEdit

No edition was make

Link copied to clipboard
object Whole : LastEdit

A whole edition was made like a line break (adding a new line) , a deletion o a image upload between content. In this case the whole document should be saved. It is important to notice that when new content is added between content this will change all the values of the positions, so it is necessary to save the whole document again.