mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 04:13:11 +08:00
Add IsLegacyScore to SoloScoreInfo
This commit is contained in:
parent
0e4e916388
commit
2abf3a55ae
@ -150,6 +150,12 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether this <see cref="ScoreInfo"/> represents a legacy (osu!stable) score.
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
public bool IsLegacyScore => LegacyScoreId != null;
|
||||||
|
|
||||||
public override string ToString() => $"score_id: {ID} user_id: {UserID}";
|
public override string ToString() => $"score_id: {ID} user_id: {UserID}";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -191,6 +197,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
{
|
{
|
||||||
OnlineID = OnlineID,
|
OnlineID = OnlineID,
|
||||||
LegacyOnlineID = (long?)LegacyScoreId ?? -1,
|
LegacyOnlineID = (long?)LegacyScoreId ?? -1,
|
||||||
|
IsLegacyScore = IsLegacyScore,
|
||||||
User = User ?? new APIUser { Id = UserID },
|
User = User ?? new APIUser { Id = UserID },
|
||||||
BeatmapInfo = new BeatmapInfo { OnlineID = BeatmapID },
|
BeatmapInfo = new BeatmapInfo { OnlineID = BeatmapID },
|
||||||
Ruleset = new RulesetInfo { OnlineID = RulesetID },
|
Ruleset = new RulesetInfo { OnlineID = RulesetID },
|
||||||
|
Loading…
Reference in New Issue
Block a user