mirror of
https://github.com/osukey/osukey.git
synced 2025-05-25 23:47:30 +09: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")]
|
[JsonProperty(@"version")]
|
||||||
private string version { get; set; }
|
private string version { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"failtimes")]
|
||||||
|
private BeatmapMetrics metrics { get; set; }
|
||||||
|
|
||||||
public BeatmapInfo ToBeatmap(RulesetStore rulesets)
|
public BeatmapInfo ToBeatmap(RulesetStore rulesets)
|
||||||
{
|
{
|
||||||
var set = BeatmapSet?.ToBeatmapSet(rulesets);
|
var set = BeatmapSet?.ToBeatmapSet(rulesets);
|
||||||
@ -70,6 +73,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
Version = version,
|
Version = version,
|
||||||
Status = Status,
|
Status = Status,
|
||||||
BeatmapSet = set,
|
BeatmapSet = set,
|
||||||
|
Metrics = metrics,
|
||||||
BaseDifficulty = new BeatmapDifficulty
|
BaseDifficulty = new BeatmapDifficulty
|
||||||
{
|
{
|
||||||
DrainRate = drainRate,
|
DrainRate = drainRate,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user