mirror of
https://github.com/ppy/osu
synced 2024-12-27 17:32:56 +00:00
Add history counts to user api
This commit is contained in:
parent
6c40f88dbe
commit
2d1afb66fb
@ -203,6 +203,21 @@ namespace osu.Game.Users
|
||||
public int ID;
|
||||
}
|
||||
|
||||
[JsonProperty("monthly_playcounts")]
|
||||
public UserHistoryCount[] MonthlyPlaycounts;
|
||||
|
||||
[JsonProperty("replays_watched_counts")]
|
||||
public UserHistoryCount[] ReplaysWatchedCounts;
|
||||
|
||||
public class UserHistoryCount
|
||||
{
|
||||
[JsonProperty("start_date")]
|
||||
public DateTime Date;
|
||||
|
||||
[JsonProperty("count")]
|
||||
public long Count;
|
||||
}
|
||||
|
||||
public override string ToString() => Username;
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user