mirror of
https://github.com/ppy/osu.git
synced 2024-12-21 18:02:55 +08:00
35 lines
873 B
C#
35 lines
873 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.
|
|
|
|
#nullable disable
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
namespace osu.Game.Online.API.Requests.Responses
|
|
{
|
|
public class APIUserMostPlayedBeatmap
|
|
{
|
|
[JsonProperty("beatmap_id")]
|
|
public int BeatmapID { get; set; }
|
|
|
|
[JsonProperty("count")]
|
|
public int PlayCount { get; set; }
|
|
|
|
[JsonProperty("beatmap")]
|
|
private APIBeatmap beatmap { get; set; }
|
|
|
|
public APIBeatmap BeatmapInfo
|
|
{
|
|
get
|
|
{
|
|
// old osu-web code doesn't nest set.
|
|
beatmap.BeatmapSet = BeatmapSet;
|
|
return beatmap;
|
|
}
|
|
}
|
|
|
|
[JsonProperty("beatmapset")]
|
|
public APIBeatmapSet BeatmapSet { get; set; }
|
|
}
|
|
}
|