Skip to content

Commit d801517

Browse files
authored
Merge pull request #20070 from smoogipoo/replay-and-legacy-id
Add `has_replay` and `legacy_score_id` to `SoloScoreInfo`
2 parents 59ec94f + a277431 commit d801517

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

osu.Game/Online/API/Requests/Responses/SoloScoreInfo.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace osu.Game.Online.API.Requests.Responses
1818
[Serializable]
1919
public class SoloScoreInfo : IHasOnlineID<long>
2020
{
21-
[JsonProperty("replay")]
21+
[JsonProperty("has_replay")]
2222
public bool HasReplay { get; set; }
2323

2424
[JsonProperty("beatmap_id")]
@@ -83,6 +83,9 @@ public class SoloScoreInfo : IHasOnlineID<long>
8383
[JsonProperty("legacy_total_score")]
8484
public int? LegacyTotalScore { get; set; }
8585

86+
[JsonProperty("legacy_score_id")]
87+
public uint? LegacyScoreId { get; set; }
88+
8689
#region osu-web API additions (not stored to database).
8790

8891
[JsonProperty("id")]
@@ -117,7 +120,6 @@ public APIBeatmapSet? BeatmapSet
117120
public bool ShouldSerializeBeatmapSet() => false;
118121
public bool ShouldSerializePP() => false;
119122
public bool ShouldSerializeOnlineID() => false;
120-
public bool ShouldSerializeHasReplay() => false;
121123

122124
#endregion
123125

0 commit comments

Comments
 (0)