Esempio n. 1
0
 public async Task DeleteFileAsync(FileSystemEntry file)
 {
     await this.ApiCaller
         .RequestAsync<Response>(HttpMethod.Get, file.Path, new Dictionary<string, string> { { "act", "rm" } })
         .ConfigureAwait(false);
 }
Esempio n. 2
0
 public async Task<VideoInfo> GetVideoInfoAsync(FileSystemEntry file)
 {
     return await this.ApiCaller
         .RequestAsync<VideoInfo>(HttpMethod.Get, file.Path.AttachParameter("act", "info"))
         .ConfigureAwait(false);
 }
Esempio n. 3
0
 public async Task<DownloadedFile> DownloadFileAsync(FileSystemEntry file)
 {
     return await this.ApiCaller.DownloadAsync(file.Path).ConfigureAwait(false);
 }
Esempio n. 4
0
 public async Task<DownloadedFile> DownloadThumbnailAsync(FileSystemEntry file)
 {
     return await this.ApiCaller
                      .DownloadAsync(file.Path.AttachParameters(new Dictionary<string, string> { { "act", "thm" } }))
                      .ConfigureAwait(false);
 }
Esempio n. 5
0
 public async Task<ICollection<FileSystemEntry>> GetFolderAsync(FileSystemEntry entry, FileFilter filter = FileFilter.None)
 {
     return await this.GetFolderAsync(entry.Path, filter).ConfigureAwait(false);
 }