// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Database; using osu.Game.Online.API; using osu.Game.Online.API.Requests; namespace osu.Game.Scoring { public class ScoreModelDownloader : ModelDownloader { public ScoreModelDownloader(IModelImporter scoreManager, IAPIProvider api) : base(scoreManager, api) { } protected override ArchiveDownloadRequest CreateDownloadRequest(IScoreInfo score, bool minimiseDownload) => new DownloadReplayRequest(score); public override ArchiveDownloadRequest GetExistingDownload(IScoreInfo model) => CurrentDownloads.Find(r => r.Model.OnlineID == model.OnlineID); } }