public static Task DownloadAsync(this IAudioCategoryAsync audioCategory, Uri uri, string downloadPath)
 {
     return(TypeHelper.TryInvokeMethodAsync(() => _webClient.DownloadFileAsync(uri, downloadPath)));
 }
 public static Task DownloadAsync(this IAudioCategoryAsync audioCategory, string url, string downloadPath)
 {
     return(DownloadAsync(audioCategory, new Uri(url), downloadPath));
 }
 public static Task DownloadAsync(this IAudioCategoryAsync audioCategory, Audio audio, string downloadPath)
 {
     return(DownloadAsync(audioCategory, audio.Url, downloadPath));
 }
Example #4
0
 public static Task DownloadAsync(this IAudioCategoryAsync audioCategory, string url, string downloadPath)
 {
     return(Task.FromResult(0));
 }
Example #5
0
 public static Task DownloadAsync(this IAudioCategoryAsync audioCategory, Uri uri, string downloadPath)
 {
     return(DownloadAsync(audioCategory, uri.ToString(), downloadPath));
 }
 public static Task DownloadAsync(this IAudioCategoryAsync audioCategory, string url, string downloadPath)
 {
     return(url.DownloadFileAsync(downloadPath));
 }