示例#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));
        }
示例#2
0
 public Task <ulong> SerialisedSizeAsync(MDataInfo mDataInfo)
 {
     return(AppBindings.MDataSerialisedSizeAsync(_appPtr, ref mDataInfo));
 }
示例#3
0
 public Task SetUserPermissionsAsync(MDataInfo mDataInfo, NativeHandle userSignPubKey, PermissionSet permissionSet, ulong version)
 {
     return(AppBindings.MDataSetUserPermissionsAsync(_appPtr, ref mDataInfo, userSignPubKey, ref permissionSet, version));
 }
示例#4
0
 public Task MutateEntriesAsync(MDataInfo mDataInfo, NativeHandle entryActionsH)
 {
     return(AppBindings.MDataMutateEntriesAsync(_appPtr, ref mDataInfo, entryActionsH));
 }
示例#5
0
 public Task PutAsync(MDataInfo mDataInfo, NativeHandle permissionsH, NativeHandle entriesH)
 {
     return(AppBindings.MDataPutAsync(_appPtr, ref mDataInfo, permissionsH, entriesH));
 }
示例#6
0
 public Task <PermissionSet> ListUserPermissionsAsync(MDataInfo mDataInfo, NativeHandle userSignPubKey)
 {
     return(AppBindings.MDataListUserPermissionsAsync(_appPtr, ref mDataInfo, userSignPubKey));
 }
示例#7
0
 public Task <List <MDataValue> > ListValuesAsync(MDataInfo mDataInfo)
 {
     return(AppBindings.MDataListValuesAsync(_appPtr, ref mDataInfo));
 }
示例#8
0
 public Task <List <MDataKey> > ListKeysAsync(MDataInfo mDataInfo)
 {
     return(AppBindings.MDataListKeysAsync(_appPtr, ref mDataInfo));
 }
示例#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)));
        }
示例#10
0
 public Task <ulong> GetVersionAsync(MDataInfo mDataInfo)
 {
     return(AppBindings.MDataGetVersionAsync(_appPtr, ref mDataInfo));
 }
示例#11
0
 public Task <(List <byte>, ulong)> GetValueAsync(MDataInfo mDataInfo, List <byte> key)
 {
     return(AppBindings.MDataGetValueAsync(_appPtr, ref mDataInfo, key));
 }
        public async Task <List <byte> > SerialiseAsync(MDataInfo mDataInfo)
        {
            var byteArray = await AppBindings.MDataInfoSerialiseAsync(ref mDataInfo);

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