Merge pull request #20202 from smoogipoo/legacy-score-id-long

Turn score ids into `ulong`s
This commit is contained in:
Dean Herbert 2022-09-09 12:37:48 +09:00 committed by GitHub
commit eb93a838d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ namespace osu.Game.Tests.Visual.Online
});
}
private int onlineID = 1;
private ulong onlineID = 1;
private APIScoresCollection createScores()
{

View File

@ -81,12 +81,12 @@ namespace osu.Game.Online.API.Requests.Responses
public int? LegacyTotalScore { get; set; }
[JsonProperty("legacy_score_id")]
public uint? LegacyScoreId { get; set; }
public ulong? LegacyScoreId { get; set; }
#region osu-web API additions (not stored to database).
[JsonProperty("id")]
public long? ID { get; set; }
public ulong? ID { get; set; }
[JsonProperty("user")]
public APIUser? User { get; set; }
@ -190,6 +190,6 @@ namespace osu.Game.Online.API.Requests.Responses
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(kvp => kvp.Key, kvp => kvp.Value),
};
public long OnlineID => ID ?? -1;
public long OnlineID => (long?)ID ?? -1;
}
}