2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2019-01-24 16:43:03 +08:00
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-12-22 14:45:16 +08:00
|
|
|
|
|
2020-07-22 17:29:50 +08:00
|
|
|
|
using osu.Game.Online.API;
|
2018-12-22 14:45:16 +08:00
|
|
|
|
|
2020-12-25 12:38:11 +08:00
|
|
|
|
namespace osu.Game.Online.Rooms
|
2018-12-22 14:45:16 +08:00
|
|
|
|
{
|
2020-08-31 18:54:41 +08:00
|
|
|
|
public class GetRoomLeaderboardRequest : APIRequest<APILeaderboard>
|
2018-12-22 14:45:16 +08:00
|
|
|
|
{
|
2021-02-16 18:29:40 +08:00
|
|
|
|
private readonly long roomId;
|
2018-12-22 14:45:16 +08:00
|
|
|
|
|
2021-02-16 18:29:40 +08:00
|
|
|
|
public GetRoomLeaderboardRequest(long roomId)
|
2018-12-22 14:45:16 +08:00
|
|
|
|
{
|
|
|
|
|
this.roomId = roomId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override string Target => $@"rooms/{roomId}/leaderboard";
|
|
|
|
|
}
|
|
|
|
|
}
|