1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Add a user object for now

This commit is contained in:
smoogipoo 2020-05-28 19:58:07 +09:00
parent f9c64d7be3
commit 7ac08620b8

View File

@ -7,9 +7,9 @@ using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using osu.Game.Online.Multiplayer;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
using osu.Game.Users;
namespace osu.Game.Online.API
{
@ -18,8 +18,8 @@ namespace osu.Game.Online.API
[JsonProperty("id")]
public int ID { get; set; }
[JsonProperty("user_id")]
public int UserID { get; set; }
[JsonProperty("user")]
public User User { get; set; }
[JsonProperty("rank")]
[JsonConverter(typeof(StringEnumConverter))]
@ -57,7 +57,7 @@ namespace osu.Game.Online.API
BeatmapInfoID = playlistItem.BeatmapID,
Ruleset = playlistItem.Ruleset.Value,
RulesetID = playlistItem.RulesetID,
User = null, // todo: do we have a user object?
User = User,
Accuracy = Accuracy,
Date = EndedAt,
Hash = string.Empty, // todo: temporary?