Ejemplo n.º 1
0
        public async Task <bool> SyncDeleteFolderAsync(string id, DateTime revisionDate)
        {
            if (!_authService.IsAuthenticated)
            {
                return(false);
            }

            SyncStarted();

            try
            {
                await _folderRepository.DeleteWithCipherUpdateAsync(id, revisionDate).ConfigureAwait(false);

                SyncCompleted(true);
                return(true);
            }
            catch (SQLite.SQLiteException)
            {
                SyncCompleted(false);
                return(false);
            }
        }