mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Split out a couple more nested classes
This commit is contained in:
16
osu.Game/Online/API/Requests/Responses/APIRankHistory.cs
Normal file
16
osu.Game/Online/API/Requests/Responses/APIRankHistory.cs
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace osu.Game.Online.API.Requests.Responses
|
||||
{
|
||||
public class APIRankHistory
|
||||
{
|
||||
[JsonProperty(@"mode")]
|
||||
public string Mode;
|
||||
|
||||
[JsonProperty(@"data")]
|
||||
public int[] Data;
|
||||
}
|
||||
}
|
@ -200,34 +200,16 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
}
|
||||
|
||||
[JsonProperty(@"rank_history")]
|
||||
private RankHistoryData rankHistory
|
||||
private APIRankHistory rankHistory
|
||||
{
|
||||
set => statistics.RankHistory = value;
|
||||
}
|
||||
|
||||
public class RankHistoryData
|
||||
{
|
||||
[JsonProperty(@"mode")]
|
||||
public string Mode;
|
||||
|
||||
[JsonProperty(@"data")]
|
||||
public int[] Data;
|
||||
}
|
||||
|
||||
[JsonProperty("badges")]
|
||||
public Badge[] Badges;
|
||||
|
||||
[JsonProperty("user_achievements")]
|
||||
public UserAchievement[] Achievements;
|
||||
|
||||
public class UserAchievement
|
||||
{
|
||||
[JsonProperty("achieved_at")]
|
||||
public DateTimeOffset AchievedAt;
|
||||
|
||||
[JsonProperty("achievement_id")]
|
||||
public int ID;
|
||||
}
|
||||
public APIUserAchievement[] Achievements;
|
||||
|
||||
[JsonProperty("monthly_playcounts")]
|
||||
public APIUserHistoryCount[] MonthlyPlaycounts;
|
||||
|
17
osu.Game/Online/API/Requests/Responses/APIUserAchievement.cs
Normal file
17
osu.Game/Online/API/Requests/Responses/APIUserAchievement.cs
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace osu.Game.Online.API.Requests.Responses
|
||||
{
|
||||
public class APIUserAchievement
|
||||
{
|
||||
[JsonProperty("achievement_id")]
|
||||
public int ID;
|
||||
|
||||
[JsonProperty("achieved_at")]
|
||||
public DateTimeOffset AchievedAt;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user