1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 04:33:21 +08:00

Fix HasReplay not being corrrectly implemented by APIScoreInfo

This commit is contained in:
Dean Herbert 2021-11-01 13:20:37 +09:00
parent b63a90966b
commit 269a8df0ec
2 changed files with 3 additions and 5 deletions

View File

@ -136,7 +136,7 @@ namespace osu.Game.Tests.Visual.Gameplay
{ {
OnlineID = 2553163309, OnlineID = 2553163309,
OnlineRulesetID = 0, OnlineRulesetID = 0,
Replay = replayAvailable, HasReplay = replayAvailable,
User = new User User = new User
{ {
Id = 39828, Id = 39828,

View File

@ -26,13 +26,11 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty(@"user")] [JsonProperty(@"user")]
public User User { get; set; } public User User { get; set; }
public bool HasReplay { get; set; }
[JsonProperty(@"id")] [JsonProperty(@"id")]
public long OnlineID { get; set; } public long OnlineID { get; set; }
[JsonProperty(@"replay")] [JsonProperty(@"replay")]
public bool Replay { get; set; } public bool HasReplay { get; set; }
[JsonProperty(@"created_at")] [JsonProperty(@"created_at")]
public DateTimeOffset Date { get; set; } public DateTimeOffset Date { get; set; }
@ -97,7 +95,7 @@ namespace osu.Game.Online.API.Requests.Responses
Date = Date, Date = Date,
PP = PP, PP = PP,
RulesetID = OnlineRulesetID, RulesetID = OnlineRulesetID,
Hash = Replay ? "online" : string.Empty, // todo: temporary? Hash = HasReplay ? "online" : string.Empty, // todo: temporary?
Rank = Rank, Rank = Rank,
Ruleset = ruleset, Ruleset = ruleset,
Mods = mods, Mods = mods,