SnapshotsClient.SnapshotConflict | Doclava
public static class

SnapshotsClient.SnapshotConflict

extends Object
java.lang.Object
   ↳ com.google.android.gms.games.SnapshotsClient.SnapshotConflict

Class Overview

Result delivered when a conflict was detected during open(SnapshotMetadata) or resolveConflict(String, Snapshot).

Summary

Public Methods
String getConflictId()
Returns the ID of the conflict to resolve, if any.
Snapshot getConflictingSnapshot()
Returns the modified version of the Snapshot in the case of a conflict.
SnapshotContents getResolutionSnapshotContents()
Returns the SnapshotContents object used to update the data in case of a conflict.
Snapshot getSnapshot()
Returns the server's version of the Snapshot that was opened.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getConflictId ()

Returns the ID of the conflict to resolve, if any. Pass this to resolveConflict(String, Snapshot) when resolving the conflict.

Returns
String

public Snapshot getConflictingSnapshot ()

Returns the modified version of the Snapshot in the case of a conflict.

Returns
Snapshot

public SnapshotContents getResolutionSnapshotContents ()

Returns the SnapshotContents object used to update the data in case of a conflict. Pass this to resolveConflict(String, String, SnapshotMetadataChange, SnapshotContents) to resolve this conflict.

Returns
SnapshotContents

public Snapshot getSnapshot ()

Returns the server's version of the Snapshot that was opened.

Returns
Snapshot