Example #1
0
 public AccountFile(Account account, StorageFile storageFile, IEnumerable<DriveFile> driveFiles, AccountFile parent)
 {
     DriveFiles.AddRange(driveFiles);
     this.StorageFile = storageFile;
     Parent = parent;
     Account = account;
 }
Example #2
0
 public AccountFile(Account account, StorageFile storageFile, AccountFile parent)
 {
     this.StorageFile = storageFile;
     Parent = parent;
     Account = account;
 }
Example #3
0
 public async override Task DownloadFileAsync(StorageFile file, Stream stream, CancellationToken token, Action<TransferProgress> progressCallback)
 {
     var f = (MockStorageFile)file;
     await stream.WriteAsync(f.content, 0, f.content.Length);
 }
Example #4
0
 public override Task DownloadFileAsync(StorageFile file, string destFolder, ActionIfFileExists actionIfFileExists, CancellationToken token, Action<TransferProgress> progressCallback)
 {
     throw new NotImplementedException();
 }
Example #5
0
 public override Task<StorageFile> UploadFileAsync(Stream stream, string fileName, StorageFile destFolder, CancellationToken token, Action<TransferProgress> progressCallback)
 {
     throw new NotImplementedException();
 }
Example #6
0
 public async override Task<StorageFile> CreateFolderAsync(string folderName, StorageFile destFolder, CancellationToken token)
 {
     var ret = new MockStorageFile(this, folderName);
     files.Add(ret.Id, ret);
     return ret;
 }
Example #7
0
 public override Task DeleteFileAsync(StorageFile id, CancellationToken token)
 {
     throw new NotImplementedException();
 }
Example #8
0
 public abstract Task<StorageFile> CreateFolderAsync(string folderName, StorageFile destFolder, CancellationToken token);
Example #9
0
 public abstract Task DownloadFileAsync(StorageFile file, Stream stream, CancellationToken token, Action<TransferProgress> progressCallback);
Example #10
0
 public abstract Task DownloadFileAsync(StorageFile file, string destFolder, ActionIfFileExists actionIfFileExists, CancellationToken token, Action<TransferProgress> progressCallback);
Example #11
0
 public abstract Task<StorageFile> UploadFileAsync(string pathName, StorageFile destFolder, CancellationToken token, Action<TransferProgress> progressCallback);
Example #12
0
 public abstract Task DeleteFileAsync(StorageFile id, CancellationToken token);