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