2019-06-29 14:59:12 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using osu.Game.Scoring;
|
|
|
|
|
|
2019-06-12 04:01:57 +08:00
|
|
|
|
namespace osu.Game.Online.API.Requests
|
|
|
|
|
{
|
2021-11-05 16:37:05 +08:00
|
|
|
|
public class DownloadReplayRequest : ArchiveDownloadRequest<IScoreInfo>
|
2019-06-12 04:01:57 +08:00
|
|
|
|
{
|
2021-11-05 16:37:05 +08:00
|
|
|
|
public DownloadReplayRequest(IScoreInfo score)
|
2019-06-12 04:01:57 +08:00
|
|
|
|
: base(score)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-26 23:40:21 +08:00
|
|
|
|
protected override string FileExtension => ".osr";
|
|
|
|
|
|
2023-08-28 19:50:52 +08:00
|
|
|
|
protected override string Target => $@"scores/{Model.OnlineID}/download";
|
2019-06-12 04:01:57 +08:00
|
|
|
|
}
|
|
|
|
|
}
|