mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:53:22 +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",
|
@"top_ranks",
|
||||||
@"medals"
|
@"medals"
|
||||||
},
|
},
|
||||||
|
RankHighest = new APIUser.UserRankHighest
|
||||||
|
{
|
||||||
|
Rank = 1,
|
||||||
|
UpdatedAt = DateTimeOffset.Now,
|
||||||
|
},
|
||||||
Statistics = new UserStatistics
|
Statistics = new UserStatistics
|
||||||
{
|
{
|
||||||
IsRanked = true,
|
IsRanked = true,
|
||||||
|
@ -34,6 +34,19 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty(@"previous_usernames")]
|
[JsonProperty(@"previous_usernames")]
|
||||||
public string[] PreviousUsernames;
|
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")]
|
[JsonProperty(@"country_code")]
|
||||||
private string countryCodeString;
|
private string countryCodeString;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user