1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:52:55 +08:00

Merge pull request #20070 from smoogipoo/replay-and-legacy-id

Add `has_replay` and `legacy_score_id` to `SoloScoreInfo`
This commit is contained in:
Dean Herbert 2022-09-02 14:55:29 +09:00 committed by GitHub
commit d80151756c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ namespace osu.Game.Online.API.Requests.Responses
[Serializable]
public class SoloScoreInfo : IHasOnlineID<long>
{
[JsonProperty("replay")]
[JsonProperty("has_replay")]
public bool HasReplay { get; set; }
[JsonProperty("beatmap_id")]
@ -83,6 +83,9 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty("legacy_total_score")]
public int? LegacyTotalScore { get; set; }
[JsonProperty("legacy_score_id")]
public uint? LegacyScoreId { get; set; }
#region osu-web API additions (not stored to database).
[JsonProperty("id")]
@ -117,7 +120,6 @@ namespace osu.Game.Online.API.Requests.Responses
public bool ShouldSerializeBeatmapSet() => false;
public bool ShouldSerializePP() => false;
public bool ShouldSerializeOnlineID() => false;
public bool ShouldSerializeHasReplay() => false;
#endregion