Fix typos and missing fields in JSON mappings.

This commit is contained in:
naoey
2018-02-26 11:46:16 +05:30
parent 5724618b2a
commit a20e4bc2c3
2 changed files with 31 additions and 11 deletions

View File

@ -28,7 +28,7 @@ namespace osu.Game.Online.API.Requests
[JsonProperty("id")]
public int ID;
[JsonProperty("created_at")]
[JsonProperty("createdAt")]
public DateTimeOffset CreatedAt;
[JsonProperty]
@ -50,6 +50,9 @@ namespace osu.Game.Online.API.Requests
[JsonProperty("rank")]
public int Rank;
[JsonProperty("approval")]
public BeatmapApproval Approval;
[JsonProperty("count")]
public int Count;
@ -59,10 +62,13 @@ namespace osu.Game.Online.API.Requests
[JsonProperty("beatmap")]
public RecentActivityBeatmap Beatmap;
[JsonProperty("beatmapset")]
public RecentActivityBeatmap Beatmapset;
[JsonProperty("user")]
public RecentActivityUser User;
[JsonProperty("achivementName")]
[JsonProperty("achievementName")]
public string AchivementName;
public class RecentActivityBeatmap
@ -104,4 +110,11 @@ namespace osu.Game.Online.API.Requests
UserSupportGift,
UsernameChange,
}
public enum BeatmapApproval
{
Ranked,
Approved,
Qualified,
}
}