Ditto 1.1.8
Public Member Functions | Properties | List of all members
DittoSDK.DittoSingleDocumentLiveQueryEvent Class Reference

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

Public Member Functions

ulong Hash (DittoDocument document)
 Returns a hash that represents the document. More...
 
string HashMnemonic (DittoDocument document)
 Returns a pattern of words that together create a mnemonic, which represents the document. More...
 

Properties

bool IsInitial [get]
 Gets a value indicating whether this is the first time the live query is fired. This will be true if this event is the first time the live query is fired. This will be false for subsequent updates.
 
DittoDocument OldDocument [get]
 Gets the snapshot of the last time the document was fired. This can be a null reference if no document previously matched.
 

Detailed Description

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

Member Function Documentation

◆ Hash()

ulong DittoSDK.DittoSingleDocumentLiveQueryEvent.Hash ( DittoDocument  document)
inline

Returns a hash that represents the document.

Parameters
documentThe document from the live query event.
Returns
A hash that represents the document.

◆ HashMnemonic()

string DittoSDK.DittoSingleDocumentLiveQueryEvent.HashMnemonic ( DittoDocument  document)
inline

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

Parameters
documentThe document from the live query event.
Returns
A pattern of words that together create a mnemonic, which represents the document.