PageContent

sealed interface PageContent

What a page actually edits: either a shared, independently-persisted document, or throwaway scratch text local to the page itself.

Inheritors

Types

Link copied to clipboard
data class DocumentReference(val documentId: DocumentId) : PageContent

The page edits/queries the document identified by documentId (possibly shared with other pages).

Link copied to clipboard
data class Scratch(val text: String, val revision: Long = 0) : PageContent

The page holds its own throwaway text, never saved as a standalone document.