Serialization::RealtimeDictionary


Properties

Methods

Events

Property Definitions

int Count

The total number of items in the RealtimeSet, including the items that have been added locally and have yet to be confirmed by the server.

Method Definitions

void Add(uint key, TValue value)

Adds a model to the RealtimeSet. This method will immediately fire a modelAdded event. If the add operation is rejected by the server (due to this client not having permissions to edit this model), a modelRemoved event will fire when the server’s response is received.

bool Remove(uint key)

Removes a model from the RealtimeSet. This method will immediately fire a modelRemoved event. If the remove operation is rejected by the server (due to this client not having permissions to edit this model), a modelAdded event will fire when the server’s response is received.

Event Definitions

ModelAdded modelAdded

An event that fires whenever an item is added. This event includes a boolean to signal whether the model was added by the local client or a remote client.

ModelRemoved modelRemoved

An event that fires whenever an item is removed. This event includes a boolean to signal whether the model was added by the local client or a remote client.

ModelReplaced modelReplaced

An event that fires whenever an item is replaced with a new model. This event includes a boolean to signal whether the model was replaced by the local client or a remote client.