public class ConflictResolutionResult extends Object
The class ConflictResolutionResult
holds the resolved data after the
conflict resolution.
The ActionType set should be supported operation on the object and should be acceptable on the current state
ActionType
,
CustomConflictResolver
Constructor and Description |
---|
ConflictResolutionResult()
Creates a ConflictResolutionResult with result as server data and server
actionType with submitToServer as false.
|
ConflictResolutionResult(com.google.gson.JsonObject resolveddata,
ActionType actionType,
boolean submitToServer)
Creates a ConflictResolutionResult with given fields
|
Modifier and Type | Method and Description |
---|---|
ActionType |
getActionType()
Returns the
ActionType which
represents the operation to be performed on object |
com.google.gson.JsonObject |
getResolveddata()
Returns the resolved data after conflict resolution
|
boolean |
isSubmitToServer()
Represents whether the resolved data to be submitted to server or not
|
void |
setActionType(ActionType actionType)
Sets the
ActionType |
public ConflictResolutionResult(com.google.gson.JsonObject resolveddata, ActionType actionType, boolean submitToServer)
resolveddata
- The resolved data of the conflictactionType
- The operation that needs to be applied on the above datasubmitToServer
- Represents whether the resolved conflict have to be
submitted to the back endActionType
public ConflictResolutionResult()
public com.google.gson.JsonObject getResolveddata()
public ActionType getActionType()
ActionType
which
represents the operation to be performed on objectpublic boolean isSubmitToServer()
public void setActionType(ActionType actionType)
ActionType
actionType
- Sets the actionTypeCopyright © 2019. All rights reserved.