CloudOnce v2.7.5
Unified Game Services API
CloudOnce.Internal.ConflictResolver Class Reference

Handles data conflict resolution. More...

Static Public Member Functions

static SyncableItem ResolveConflict (SyncableItem localItem, SyncableItem otherItem)
 Takes two different SyncableItems and returns one of them based on the persistence type. The two items must have the same data type and persistence type. More...
 

Detailed Description

Handles data conflict resolution.

Member Function Documentation

◆ ResolveConflict()

static SyncableItem CloudOnce.Internal.ConflictResolver.ResolveConflict ( SyncableItem  localItem,
SyncableItem  otherItem 
)
inlinestatic

Takes two different SyncableItems and returns one of them based on the persistence type. The two items must have the same data type and persistence type.

Parameters
localItemThe first of two SyncableItems that are in conflict.
otherItemThe second of two SyncableItems that are in conflict.
Returns
Returns one of the two SyncableItems based on the persistence type. If the two SyncableItems don't share the same data type or persistence type, null will be returned.

The documentation for this class was generated from the following file: