internal void Commit(NativeSnapshotMetadata metadata, NativeSnapshotMetadataChange metadataChange,
     byte[] updatedData, Action<CommitResponse> callback) {
     Misc.CheckNotNull(metadata);
     Misc.CheckNotNull(metadataChange);
     C.SnapshotManager_Commit(
         mServices.AsHandle(),
         metadata.AsPointer(),
         metadataChange.AsPointer(),
         updatedData,
         new UIntPtr((ulong) updatedData.Length),
         InternalCommitCallback,
         Callbacks.ToIntPtr<CommitResponse>(callback, CommitResponse.FromPointer));
 }
    internal void Delete(NativeSnapshotMetadata metadata) {
        Misc.CheckNotNull(metadata);

        C.SnapshotManager_Delete(
            mServices.AsHandle(),
            metadata.AsPointer());
    }
    internal void Read(NativeSnapshotMetadata metadata, Action<ReadResponse> callback) {
        Misc.CheckNotNull(metadata);
        Misc.CheckNotNull(callback);

        C.SnapshotManager_Read(
            mServices.AsHandle(),
            metadata.AsPointer(),
            InternalReadCallback,
            Callbacks.ToIntPtr<ReadResponse>(callback, ReadResponse.FromPointer));
    }
    internal void Resolve(NativeSnapshotMetadata metadata,
        NativeSnapshotMetadataChange metadataChange,
        string conflictId, Action<CommitResponse> callback) {
        Misc.CheckNotNull(metadata);
        Misc.CheckNotNull(metadataChange);
        Misc.CheckNotNull(conflictId);

        C.SnapshotManager_ResolveConflict(
            mServices.AsHandle(),
            metadata.AsPointer(),
            metadataChange.AsPointer(),
            conflictId,
            InternalCommitCallback,
            Callbacks.ToIntPtr<CommitResponse>(callback, CommitResponse.FromPointer));
    }
Exemple #5
0
 internal void Commit(NativeSnapshotMetadata metadata, NativeSnapshotMetadataChange metadataChange, byte[] updatedData, Action <CommitResponse> callback)
 {
     Misc.CheckNotNull(metadata);
     Misc.CheckNotNull(metadataChange);
     GooglePlayGames.Native.Cwrapper.SnapshotManager.SnapshotManager_Commit(mServices.AsHandle(), metadata.AsPointer(), metadataChange.AsPointer(), updatedData, new UIntPtr((ulong)updatedData.Length), InternalCommitCallback, Callbacks.ToIntPtr(callback, CommitResponse.FromPointer));
 }
 internal void Resolve(NativeSnapshotMetadata metadata, NativeSnapshotMetadataChange metadataChange, string conflictId, Action <CommitResponse> callback)
 {
     Misc.CheckNotNull <NativeSnapshotMetadata>(metadata);
     Misc.CheckNotNull <NativeSnapshotMetadataChange>(metadataChange);
     Misc.CheckNotNull <string>(conflictId);
     GooglePlayGames.Native.Cwrapper.SnapshotManager.SnapshotManager_ResolveConflict(this.mServices.AsHandle(), metadata.AsPointer(), metadataChange.AsPointer(), conflictId, new GooglePlayGames.Native.Cwrapper.SnapshotManager.CommitCallback(GooglePlayGames.Native.PInvoke.SnapshotManager.InternalCommitCallback), Callbacks.ToIntPtr <CommitResponse>(callback, new Func <IntPtr, CommitResponse>(CommitResponse.FromPointer)));
 }
 internal void Read(NativeSnapshotMetadata metadata, Action <ReadResponse> callback)
 {
     Misc.CheckNotNull <NativeSnapshotMetadata>(metadata);
     Misc.CheckNotNull <Action <ReadResponse> >(callback);
     GooglePlayGames.Native.Cwrapper.SnapshotManager.SnapshotManager_Read(this.mServices.AsHandle(), metadata.AsPointer(), new GooglePlayGames.Native.Cwrapper.SnapshotManager.ReadCallback(GooglePlayGames.Native.PInvoke.SnapshotManager.InternalReadCallback), Callbacks.ToIntPtr <ReadResponse>(callback, new Func <IntPtr, ReadResponse>(ReadResponse.FromPointer)));
 }
 internal void Delete(NativeSnapshotMetadata metadata)
 {
     Misc.CheckNotNull <NativeSnapshotMetadata>(metadata);
     GooglePlayGames.Native.Cwrapper.SnapshotManager.SnapshotManager_Delete(this.mServices.AsHandle(), metadata.AsPointer());
 }