mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 19:57:24 +08:00
33 lines
868 B
C#
33 lines
868 B
C#
// 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 Newtonsoft.Json;
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Rulesets;
|
|
|
|
namespace osu.Game.Online.API.Requests.Responses
|
|
{
|
|
public class APIUserMostPlayedBeatmap
|
|
{
|
|
[JsonProperty("beatmap_id")]
|
|
public int BeatmapID;
|
|
|
|
[JsonProperty("count")]
|
|
public int PlayCount;
|
|
|
|
[JsonProperty]
|
|
private BeatmapInfo beatmap;
|
|
|
|
[JsonProperty]
|
|
private APIBeatmapSet beatmapSet;
|
|
|
|
public BeatmapInfo GetBeatmapInfo(RulesetStore rulesets)
|
|
{
|
|
BeatmapSetInfo setInfo = beatmapSet.ToBeatmapSet(rulesets);
|
|
beatmap.BeatmapSet = setInfo;
|
|
beatmap.Metadata = setInfo.Metadata;
|
|
return beatmap;
|
|
}
|
|
}
|
|
}
|