mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Fill more json fields.
This commit is contained in:
64
osu.Game/Users/UserStatistics.cs
Normal file
64
osu.Game/Users/UserStatistics.cs
Normal file
@ -0,0 +1,64 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace osu.Game.Users
|
||||
{
|
||||
public class UserStatistics
|
||||
{
|
||||
[JsonProperty(@"level")]
|
||||
public LevelInfo Level;
|
||||
|
||||
public class LevelInfo
|
||||
{
|
||||
[JsonProperty(@"current")]
|
||||
public int Current;
|
||||
|
||||
[JsonProperty(@"progress")]
|
||||
public int Progress;
|
||||
}
|
||||
|
||||
[JsonProperty(@"pp")]
|
||||
public decimal PP;
|
||||
|
||||
[JsonProperty(@"pp_rank")]
|
||||
public int Rank;
|
||||
|
||||
[JsonProperty(@"ranked_score")]
|
||||
public long RankedScore;
|
||||
|
||||
[JsonProperty(@"hit_accuracy")]
|
||||
public decimal Accuracy;
|
||||
|
||||
[JsonProperty(@"play_count")]
|
||||
public int PlayCount;
|
||||
|
||||
[JsonProperty(@"total_score")]
|
||||
public long TotalScore;
|
||||
|
||||
[JsonProperty(@"total_hits")]
|
||||
public int TotalHits;
|
||||
|
||||
[JsonProperty(@"maximum_combo")]
|
||||
public int MaxCombo;
|
||||
|
||||
[JsonProperty(@"replays_watched_by_others")]
|
||||
public int ReplayWatched;
|
||||
|
||||
[JsonProperty(@"grade_counts")]
|
||||
public Grades GradesCount;
|
||||
|
||||
public class Grades
|
||||
{
|
||||
[JsonProperty(@"ss")]
|
||||
public int SS;
|
||||
|
||||
[JsonProperty(@"s")]
|
||||
public int S;
|
||||
|
||||
[JsonProperty(@"a")]
|
||||
public int A;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user