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:
parent
b63a90966b
commit
269a8df0ec
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user