1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 14:53:01 +08:00

Merge pull request #2039 from peppy/api-updates

Update user object to match new standardised api
This commit is contained in:
Dean Herbert 2018-02-08 18:15:47 +09:00 committed by GitHub
commit a636d1207a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,19 +56,19 @@ namespace osu.Game.Users
public int? Id; public int? Id;
} }
[JsonProperty(@"isAdmin")] [JsonProperty(@"is_admin")]
public bool IsAdmin; public bool IsAdmin;
[JsonProperty(@"isSupporter")] [JsonProperty(@"is_supporter")]
public bool IsSupporter; public bool IsSupporter;
[JsonProperty(@"isGMT")] [JsonProperty(@"is_gmt")]
public bool IsGMT; public bool IsGMT;
[JsonProperty(@"isQAT")] [JsonProperty(@"is_qat")]
public bool IsQAT; public bool IsQAT;
[JsonProperty(@"isBNG")] [JsonProperty(@"is_bng")]
public bool IsBNG; public bool IsBNG;
[JsonProperty(@"is_active")] [JsonProperty(@"is_active")]
@ -107,7 +107,7 @@ namespace osu.Game.Users
[JsonProperty(@"playmode")] [JsonProperty(@"playmode")]
public string PlayMode; public string PlayMode;
[JsonProperty(@"profileOrder")] [JsonProperty(@"profile_order")]
public string[] ProfileOrder; public string[] ProfileOrder;
[JsonProperty(@"kudosu")] [JsonProperty(@"kudosu")]