Gets number of objects that are not marked as MergableObjectState.Unchanged.
Number of changed objects.
Get number of conflicts in the set.
Number of conflicts.
Checks if there are any changed objects in the set.
true if there areobject not marked as MergableObjectState.Unchanged.
Gets all local objects and their remote counterparts. Includes both state and conflict reasons (if any)
All objects.
Accepts changes in the set. Is only successful if no conflicts exist.
true if no conflicts existed so changes can be accepted. Otherwise, false.
Adds an object. If object already exists, it will not be added. An object exists for items where MergableObject.id already exists.
Object to add
true if object was added, otherwise false.
Clear set
Deletes a object
Id of object to delete
true if object was deleted. Otherwise false
Get object with specified id.
Id of object to get.
Check if object with specified id exists.
Id of matching object.
true if object exists. Otherwise false.
Merges remote objects.
Remote objects to merge.
Number of conflicts that occured during the merge. May not be same as conflictCount (which gives all conflicts from previous merges as well.).
Updates an object that already exists.
Id of object to update
function called with MergableObject instance of specified id. Caller should make any required modfifications to the object in this function.
true if object did exist, otherwise false.
Represents a collection of object that has a local and a remote representation. Changes are always made to the local representation of the object. However it is possible to merge remote representations of the objects. When a merge occurs new local objects may be added, updated and deleted In some cases conflicts may arise. Such as when a local object has been modified but the remote object has been deleted.