Remove unecessary third generic and change usages to match

This commit is contained in:
naoey
2019-06-11 21:11:30 +05:30
parent f4dab4da85
commit 06a558c4b7
4 changed files with 17 additions and 22 deletions

View File

@ -7,17 +7,16 @@ namespace osu.Game.Online.API.Requests
{
public class DownloadBeatmapSetRequest : ArchiveDownloadModelRequest<BeatmapSetInfo>
{
public readonly BeatmapSetInfo BeatmapSet;
private readonly bool noVideo;
private readonly BeatmapSetInfo set;
public DownloadBeatmapSetRequest(BeatmapSetInfo set, bool noVideo)
: base(set)
{
this.noVideo = noVideo;
BeatmapSet = set;
this.set = set;
}
protected override string Target => $@"beatmapsets/{BeatmapSet.OnlineBeatmapSetID}/download{(noVideo ? "?noVideo=1" : "")}";
protected override string Target => $@"beatmapsets/{set.OnlineBeatmapSetID}/download{(noVideo ? "?noVideo=1" : "")}";
}
}