1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 17:02:55 +08:00

Remove RoomPlaylistScores intermediate class

This commit is contained in:
smoogipoo 2020-07-22 20:24:42 +09:00
parent f8401a76a2
commit 568fb51ce2
2 changed files with 2 additions and 10 deletions

View File

@ -111,7 +111,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
void success()
{
r.TriggerSuccess(new RoomPlaylistScores { Scores = roomScores });
r.TriggerSuccess(new MultiplayerScores { Scores = roomScores });
roomsReceived = true;
}

View File

@ -1,8 +1,6 @@
// 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 System.Collections.Generic;
using Newtonsoft.Json;
using osu.Framework.IO.Network;
using osu.Game.Extensions;
using osu.Game.Online.API;
@ -13,7 +11,7 @@ namespace osu.Game.Online.Multiplayer
/// <summary>
/// Returns a list of scores for the specified playlist item.
/// </summary>
public class IndexPlaylistScoresRequest : APIRequest<RoomPlaylistScores>
public class IndexPlaylistScoresRequest : APIRequest<MultiplayerScores>
{
private readonly int roomId;
private readonly int playlistItemId;
@ -50,10 +48,4 @@ namespace osu.Game.Online.Multiplayer
protected override string Target => $@"rooms/{roomId}/playlist/{playlistItemId}/scores";
}
public class RoomPlaylistScores
{
[JsonProperty("scores")]
public List<MultiplayerScore> Scores { get; set; }
}
}