2018-01-05 11:21:19 +00:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-06-15 13:13:40 +00:00
|
|
|
|
// 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;
|
|
|
|
|
|
2017-06-25 02:51:54 +00:00
|
|
|
|
public struct LevelInfo
|
2017-06-15 13:13:40 +00:00
|
|
|
|
{
|
|
|
|
|
[JsonProperty(@"current")]
|
|
|
|
|
public int Current;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"progress")]
|
|
|
|
|
public int Progress;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"pp")]
|
2017-06-15 15:25:13 +00:00
|
|
|
|
public decimal? PP;
|
2017-06-15 13:13:40 +00:00
|
|
|
|
|
|
|
|
|
[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")]
|
2017-09-13 06:20:49 +00:00
|
|
|
|
public int ReplaysWatched;
|
2017-06-15 13:13:40 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty(@"grade_counts")]
|
|
|
|
|
public Grades GradesCount;
|
|
|
|
|
|
2017-06-25 02:51:54 +00:00
|
|
|
|
public struct Grades
|
2017-06-15 13:13:40 +00:00
|
|
|
|
{
|
|
|
|
|
[JsonProperty(@"ss")]
|
|
|
|
|
public int SS;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"s")]
|
|
|
|
|
public int S;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"a")]
|
|
|
|
|
public int A;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|