Esempio n. 1
0
 public AccountFile(Account account, StorageFile storageFile, IEnumerable<DriveFile> driveFiles, AccountFile parent)
 {
     DriveFiles.AddRange(driveFiles);
     this.StorageFile = storageFile;
     Parent = parent;
     Account = account;
 }
Esempio n. 2
0
 public AccountFile(Account account, StorageFile storageFile, AccountFile parent)
 {
     this.StorageFile = storageFile;
     Parent = parent;
     Account = account;
 }
Esempio n. 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);
 }
Esempio n. 4
0
 public override Task DownloadFileAsync(StorageFile file, string destFolder, ActionIfFileExists actionIfFileExists, CancellationToken token, Action<TransferProgress> progressCallback)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 public override Task<StorageFile> UploadFileAsync(Stream stream, string fileName, StorageFile destFolder, CancellationToken token, Action<TransferProgress> progressCallback)
 {
     throw new NotImplementedException();
 }
Esempio n. 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;
 }
Esempio n. 7
0
 public override Task DeleteFileAsync(StorageFile id, CancellationToken token)
 {
     throw new NotImplementedException();
 }
Esempio n. 8
0
 public abstract Task<StorageFile> CreateFolderAsync(string folderName, StorageFile destFolder, CancellationToken token);
Esempio n. 9
0
 public abstract Task DownloadFileAsync(StorageFile file, Stream stream, CancellationToken token, Action<TransferProgress> progressCallback);
Esempio n. 10
0
 public abstract Task DownloadFileAsync(StorageFile file, string destFolder, ActionIfFileExists actionIfFileExists, CancellationToken token, Action<TransferProgress> progressCallback);
Esempio n. 11
0
 public abstract Task<StorageFile> UploadFileAsync(string pathName, StorageFile destFolder, CancellationToken token, Action<TransferProgress> progressCallback);
Esempio n. 12
0
 public abstract Task DeleteFileAsync(StorageFile id, CancellationToken token);