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-06-08 10:41:54 +08:00
|
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Online.API.Requests.Responses
|
|
|
|
|
{
|
|
|
|
|
public class APIBeatmapMetrics : BeatmapMetrics
|
|
|
|
|
{
|
|
|
|
|
//the online API returns some metrics as a nested object.
|
|
|
|
|
[JsonProperty(@"failtimes")]
|
|
|
|
|
private BeatmapMetrics failTimes
|
|
|
|
|
{
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
Fails = value.Fails;
|
|
|
|
|
Retries = value.Retries;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//and other metrics in the beatmap set.
|
|
|
|
|
[JsonProperty(@"beatmapset")]
|
|
|
|
|
private BeatmapMetrics beatmapSet
|
|
|
|
|
{
|
|
|
|
|
set => Ratings = value.Ratings;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|