2019-01-24 16:43:03 +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.
|
2018-12-22 11:50:37 +08:00
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2018-12-22 11:50:37 +08:00
|
|
|
using osu.Game.Scoring;
|
|
|
|
|
2020-12-25 12:38:11 +08:00
|
|
|
namespace osu.Game.Online.Rooms
|
2018-12-22 11:50:37 +08:00
|
|
|
{
|
2022-02-11 14:53:45 +08:00
|
|
|
public class SubmitRoomScoreRequest : SubmitScoreRequest
|
2018-12-22 11:50:37 +08:00
|
|
|
{
|
2021-02-16 18:29:40 +08:00
|
|
|
private readonly long roomId;
|
|
|
|
private readonly long playlistItemId;
|
2018-12-22 11:50:37 +08:00
|
|
|
|
2022-02-11 14:53:45 +08:00
|
|
|
public SubmitRoomScoreRequest(ScoreInfo scoreInfo, long scoreId, long roomId, long playlistItemId)
|
|
|
|
: base(scoreInfo, scoreId)
|
2018-12-22 11:50:37 +08:00
|
|
|
{
|
|
|
|
this.roomId = roomId;
|
|
|
|
this.playlistItemId = playlistItemId;
|
|
|
|
}
|
|
|
|
|
2022-02-11 14:53:45 +08:00
|
|
|
protected override string Target => $@"rooms/{roomId}/playlist/{playlistItemId}/scores/{ScoreId}";
|
2018-12-22 11:50:37 +08:00
|
|
|
}
|
|
|
|
}
|