DittoSingleDocumentLiveQueryEvent

class DittoSingleDocumentLiveQueryEvent(isInitial: Boolean, oldDocument: DittoDocument?)

Provides information about a live query event relating to a single document live query.

Constructors

DittoSingleDocumentLiveQueryEvent
Link copied to clipboard
fun DittoSingleDocumentLiveQueryEvent(isInitial: Boolean, oldDocument: DittoDocument?)

Functions

hash
Link copied to clipboard
fun hash(document: DittoDocument?): BigInteger

Returns a hash that represents the document.

hashMnemonic
Link copied to clipboard
fun hashMnemonic(document: DittoDocument?): String

Returns a pattern of words that together create a mnemonic, which represents the document.

Properties

isInitial
Link copied to clipboard
val isInitial: Boolean

Indicates whether the event is an initial event or not.

oldDocument
Link copied to clipboard
val oldDocument: DittoDocument?

The document's previous state.