mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 10:22:56 +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:
commit
d80151756c
@ -18,7 +18,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public class SoloScoreInfo : IHasOnlineID<long>
|
public class SoloScoreInfo : IHasOnlineID<long>
|
||||||
{
|
{
|
||||||
[JsonProperty("replay")]
|
[JsonProperty("has_replay")]
|
||||||
public bool HasReplay { get; set; }
|
public bool HasReplay { get; set; }
|
||||||
|
|
||||||
[JsonProperty("beatmap_id")]
|
[JsonProperty("beatmap_id")]
|
||||||
@ -83,6 +83,9 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty("legacy_total_score")]
|
[JsonProperty("legacy_total_score")]
|
||||||
public int? LegacyTotalScore { get; set; }
|
public int? LegacyTotalScore { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("legacy_score_id")]
|
||||||
|
public uint? LegacyScoreId { get; set; }
|
||||||
|
|
||||||
#region osu-web API additions (not stored to database).
|
#region osu-web API additions (not stored to database).
|
||||||
|
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
@ -117,7 +120,6 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
public bool ShouldSerializeBeatmapSet() => false;
|
public bool ShouldSerializeBeatmapSet() => false;
|
||||||
public bool ShouldSerializePP() => false;
|
public bool ShouldSerializePP() => false;
|
||||||
public bool ShouldSerializeOnlineID() => false;
|
public bool ShouldSerializeOnlineID() => false;
|
||||||
public bool ShouldSerializeHasReplay() => false;
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user