Ejemplo n.º 1
0
        /// <summary>
        /// Get a handle to the entries associated with Mutable Data.
        /// </summary>
        /// <param name="mDataInfo">MDataInfo to access Mutable Data.</param>
        /// <returns>Handle to MDataEntries.</returns>
        public async Task <NativeHandle> GetHandleAsync(MDataInfo mDataInfo)
        {
            var handle = await AppBindings.MDataEntriesAsync(_appPtr, ref mDataInfo);

            return(new NativeHandle(_appPtr, handle, FreeAsync));
        }
Ejemplo n.º 2
0
 public Task <ulong> SerialisedSizeAsync(MDataInfo mDataInfo)
 {
     return(AppBindings.MDataSerialisedSizeAsync(_appPtr, ref mDataInfo));
 }
Ejemplo n.º 3
0
 public Task SetUserPermissionsAsync(MDataInfo mDataInfo, NativeHandle userSignPubKey, PermissionSet permissionSet, ulong version)
 {
     return(AppBindings.MDataSetUserPermissionsAsync(_appPtr, ref mDataInfo, userSignPubKey, ref permissionSet, version));
 }
Ejemplo n.º 4
0
 public Task MutateEntriesAsync(MDataInfo mDataInfo, NativeHandle entryActionsH)
 {
     return(AppBindings.MDataMutateEntriesAsync(_appPtr, ref mDataInfo, entryActionsH));
 }
Ejemplo n.º 5
0
 public Task PutAsync(MDataInfo mDataInfo, NativeHandle permissionsH, NativeHandle entriesH)
 {
     return(AppBindings.MDataPutAsync(_appPtr, ref mDataInfo, permissionsH, entriesH));
 }
Ejemplo n.º 6
0
 public Task <PermissionSet> ListUserPermissionsAsync(MDataInfo mDataInfo, NativeHandle userSignPubKey)
 {
     return(AppBindings.MDataListUserPermissionsAsync(_appPtr, ref mDataInfo, userSignPubKey));
 }
Ejemplo n.º 7
0
 public Task <List <MDataValue> > ListValuesAsync(MDataInfo mDataInfo)
 {
     return(AppBindings.MDataListValuesAsync(_appPtr, ref mDataInfo));
 }
Ejemplo n.º 8
0
 public Task <List <MDataKey> > ListKeysAsync(MDataInfo mDataInfo)
 {
     return(AppBindings.MDataListKeysAsync(_appPtr, ref mDataInfo));
 }
Ejemplo n.º 9
0
        public async Task <NativeHandle> ListPermissionsAsync(MDataInfo mDataInfo)
        {
            var handle = await AppBindings.MDataListPermissionsAsync(_appPtr, ref mDataInfo);

            return(new NativeHandle(_appPtr, handle, freeHandle => AppBindings.MDataPermissionsFreeAsync(_appPtr, freeHandle)));
        }
Ejemplo n.º 10
0
 public Task <ulong> GetVersionAsync(MDataInfo mDataInfo)
 {
     return(AppBindings.MDataGetVersionAsync(_appPtr, ref mDataInfo));
 }
Ejemplo n.º 11
0
 public Task <(List <byte>, ulong)> GetValueAsync(MDataInfo mDataInfo, List <byte> key)
 {
     return(AppBindings.MDataGetValueAsync(_appPtr, ref mDataInfo, key));
 }
Ejemplo n.º 12
0
        public async Task <List <byte> > SerialiseAsync(MDataInfo mDataInfo)
        {
            var byteArray = await AppBindings.MDataInfoSerialiseAsync(ref mDataInfo);

            return(new List <byte>(byteArray));
        }
Ejemplo n.º 13
0
 public Task <List <byte> > EncryptEntryValueAsync(MDataInfo mDataInfo, List <byte> inputBytes)
 {
     return(AppBindings.MDataInfoEncryptEntryValueAsync(ref mDataInfo, inputBytes));
 }
Ejemplo n.º 14
0
 public Task <List <byte> > DecryptAsync(MDataInfo mDataInfo, List <byte> cipherText)
 {
     return(AppBindings.MDataInfoDecryptAsync(ref mDataInfo, cipherText));
 }