mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 11:22:57 +08:00
Add RankHighest
to APIUser
This commit is contained in:
parent
0ebea77392
commit
c9c39ecb2f
@ -137,6 +137,11 @@ namespace osu.Game.Tests.Visual.Online
|
||||
@"top_ranks",
|
||||
@"medals"
|
||||
},
|
||||
RankHighest = new APIUser.UserRankHighest
|
||||
{
|
||||
Rank = 1,
|
||||
UpdatedAt = DateTimeOffset.Now,
|
||||
},
|
||||
Statistics = new UserStatistics
|
||||
{
|
||||
IsRanked = true,
|
||||
|
@ -34,6 +34,19 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
[JsonProperty(@"previous_usernames")]
|
||||
public string[] PreviousUsernames;
|
||||
|
||||
[JsonProperty(@"rank_highest")]
|
||||
[CanBeNull]
|
||||
public UserRankHighest RankHighest;
|
||||
|
||||
public class UserRankHighest
|
||||
{
|
||||
[JsonProperty(@"rank")]
|
||||
public int Rank;
|
||||
|
||||
[JsonProperty(@"updated_at")]
|
||||
public DateTimeOffset UpdatedAt;
|
||||
}
|
||||
|
||||
[JsonProperty(@"country_code")]
|
||||
private string countryCodeString;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user