mirror of
https://github.com/ppy/osu
synced 2025-01-14 10:01:14 +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;
|
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;
|
public override string ToString() => Username;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user