using DownloadManager.Utilities; namespace DownloadManager.Models.UrlGetter { class DirectUrlGetter : IUrlGetter { public async Task GetFileUrl(string taskUrl) { var fileName = System.IO.Path.GetFileName(taskUrl).ToUnescapedString(); return new FileUrl(taskUrl, fileName, null); } } }