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 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));
        }
示例#3
0
        internal void Resolve(NativeSnapshotMetadata metadata,
                              NativeSnapshotMetadataChange metadataChange,
                              string conflictId, byte[] updatedData, Action <OpenResponse> callback)
        {
            Misc.CheckNotNull(metadata);
            Misc.CheckNotNull(metadataChange);
            Misc.CheckNotNull(conflictId);
            Misc.CheckNotNull(updatedData);

            C.SnapshotManager_ResolveConflict(
                mServices.AsHandle(),
                conflictId,
                metadata.AsPointer(),
                metadataChange.AsPointer(),
                updatedData,
                new UIntPtr((ulong)updatedData.Length),
                InternalOpenCallback,
                Callbacks.ToIntPtr <OpenResponse>(callback, OpenResponse.FromPointer));
        }
 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 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));
    }
示例#6
0
 internal void Resolve(NativeSnapshotMetadata metadata, NativeSnapshotMetadataChange metadataChange, string conflictId, Action <SnapshotManager.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(SnapshotManager.InternalCommitCallback), Callbacks.ToIntPtr <SnapshotManager.CommitResponse>(callback, new Func <IntPtr, SnapshotManager.CommitResponse>(SnapshotManager.CommitResponse.FromPointer)));
 }
示例#7
0
 internal void Commit(NativeSnapshotMetadata metadata, NativeSnapshotMetadataChange metadataChange, byte[] updatedData, Action <SnapshotManager.CommitResponse> callback)
 {
     Misc.CheckNotNull <NativeSnapshotMetadata>(metadata);
     Misc.CheckNotNull <NativeSnapshotMetadataChange>(metadataChange);
     GooglePlayGames.Native.Cwrapper.SnapshotManager.SnapshotManager_Commit(this.mServices.AsHandle(), metadata.AsPointer(), metadataChange.AsPointer(), updatedData, new UIntPtr((ulong)updatedData.Length), new GooglePlayGames.Native.Cwrapper.SnapshotManager.CommitCallback(SnapshotManager.InternalCommitCallback), Callbacks.ToIntPtr <SnapshotManager.CommitResponse>(callback, new Func <IntPtr, SnapshotManager.CommitResponse>(SnapshotManager.CommitResponse.FromPointer)));
 }