public async Task DownloadBeatmapset() { if (BeatmapsetDownloadListItemViewModel == null) { return; } BeatmapsetDownloadListItemViewModel item = BeatmapsetDownloadListItemViewModel; string fileName = $"{item.BeatmapsetId} {item.Artist}-{item.Title}.osz"; string path = $"{Environment.CurrentDirectory}/download/{fileName}"; this.DownloadFileAsync(new Uri($"https://osu.sayobot.cn/osu.php?s={item.BeatmapsetId}"), path); }
public Downloader(BeatmapsetDownloadListItemViewModel item) : base() { BeatmapsetDownloadListItemViewModel = item; }