mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:18:22 +08:00
Fix HasReplay
not being corrrectly implemented by APIScoreInfo
This commit is contained in:
parent
b63a90966b
commit
269a8df0ec
@ -136,7 +136,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
{
|
||||
OnlineID = 2553163309,
|
||||
OnlineRulesetID = 0,
|
||||
Replay = replayAvailable,
|
||||
HasReplay = replayAvailable,
|
||||
User = new User
|
||||
{
|
||||
Id = 39828,
|
||||
|
@ -26,13 +26,11 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
[JsonProperty(@"user")]
|
||||
public User User { get; set; }
|
||||
|
||||
public bool HasReplay { get; set; }
|
||||
|
||||
[JsonProperty(@"id")]
|
||||
public long OnlineID { get; set; }
|
||||
|
||||
[JsonProperty(@"replay")]
|
||||
public bool Replay { get; set; }
|
||||
public bool HasReplay { get; set; }
|
||||
|
||||
[JsonProperty(@"created_at")]
|
||||
public DateTimeOffset Date { get; set; }
|
||||
@ -97,7 +95,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
Date = Date,
|
||||
PP = PP,
|
||||
RulesetID = OnlineRulesetID,
|
||||
Hash = Replay ? "online" : string.Empty, // todo: temporary?
|
||||
Hash = HasReplay ? "online" : string.Empty, // todo: temporary?
|
||||
Rank = Rank,
|
||||
Ruleset = ruleset,
|
||||
Mods = mods,
|
||||
|
Loading…
Reference in New Issue
Block a user