mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 10:23:02 +08:00
Deserialize API metrics
This commit is contained in:
parent
aef94ce9f1
commit
f240a157b2
@ -57,6 +57,9 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
[JsonProperty(@"version")]
|
||||
private string version { get; set; }
|
||||
|
||||
[JsonProperty(@"failtimes")]
|
||||
private BeatmapMetrics metrics { get; set; }
|
||||
|
||||
public BeatmapInfo ToBeatmap(RulesetStore rulesets)
|
||||
{
|
||||
var set = BeatmapSet?.ToBeatmapSet(rulesets);
|
||||
@ -70,6 +73,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
Version = version,
|
||||
Status = Status,
|
||||
BeatmapSet = set,
|
||||
Metrics = metrics,
|
||||
BaseDifficulty = new BeatmapDifficulty
|
||||
{
|
||||
DrainRate = drainRate,
|
||||
|
Loading…
Reference in New Issue
Block a user